Skip to content

Instantly share code, notes, and snippets.

@ionutblt
ionutblt / helperclasses.css
Created May 3, 2018 11:04 — forked from guardadoe/helperclasses.css
X Theme helper classes
.x-column {
float: left;
margin-right: 4%
}
.x-column.x-1-1 {
width: 100%
}
@ionutblt
ionutblt / js-functions.md
Created August 20, 2017 22:31 — forked from nifl/js-functions.md
JS Functions

Functions

Functions are first–class citizens in JS, meaning that they can be passed around like any other type of data, eg, variables. http://en.wikipedia.org/wiki/First-class_function

Declared function

Declared functions build in memory immediately when the program loads.

Basic syntax

@ionutblt
ionutblt / CS_JS_305.md
Created August 20, 2017 21:03 — forked from 37celsius/CS_JS_305.md
Learning fundamentals of JavaScript 3 Starting with sublevel 5

Forest of function expression (2 REVIEW)

/* Developers for the Forest of Function Expressions Theme Park have created a function declaration named forestFright, but they’ve decided not to keep the function in memory.

Convert the function from a named function declaration to an anonymous function expression and assign it to a variable called runAway.

function forestFright() {
  var toAlert = "";
  for (var i = 0; i < 5; i++) {