Please enable JavaScript.
Coggle requires JavaScript to display documents.
JS - advanced (use strict (strict operating context, helps with error…
JS - advanced
use strict
-
-
-
doesn't let to delete Variable, Functions and Functions arguments
scopes
-
-
function scope chain
function sayHello(name){
var prefix = "hello";
function suffix(){
var text = prefix + name
return text
}
}
variable passing
-
objects
by reference
can't change the pointer, only properties and values
-
-
closure
when used, doesn't copy the value, mantains only pointer to it
-