What Is Javascript?: Foo Foo Foo
What Is Javascript?: Foo Foo Foo
Dynamic typing
JavaScript is a loosely typed or a dynamic language. That means you don't have to
declare the type of a variable ahead of time. The type will get determined
automatically while the program is being processed. That also means that you can
have the same variable as different types:
var foo = 42; // foo is now a Number
var foo = "bar"; // foo is now a String
var foo = true; // foo is now a Boolean
Boolean
Null
Undefined
Number
String
Symbol (new in ECMAScript 6)
and Object
Boolean type:Boolean represents a logical entity and can have two values: true, and false.
Null type:The Null type has exactly one value: null.
Undefined type:A variable that has not been assigned a value has the value undefined.
Variables in JavaScript are case sensitive. Variable name and Name are two different
variables
whereas name and Name are the same variables in ABAP.