any application that can be written in JavaScript, will eventually be written in JavaScript.
Building Blocks
numbers
strings
arrays
objects
booleans
Variables:
Building Blocks
Operators & Syntax
<
>
=
==
===
?
:
()
{}
Building Blocks
Statements
examples:
var val =5;
var a = function(value) {
return value + 1;
}
var myname = "Nader";
var b = [val, myname];
Building Blocks
Functions
example:
var myfunction = function(name) {
var name = name;
console.log(name)
}
var makeName = myFunction("JIM");