2) Global properties that return a simple value and have no methods are:
Infinity, NaN, undefined, null
3) How to create a variable:
var myNameVariable = ‘name1’;
//Re-assigning the value:
myNameVariable = ‘name2’;
4) Primitive data types that are supported in Javascript are:
Boolean, Null, Undefined, Number, String, Symbol, Object
- Boolean type can take true or false
- Null can take exactly one value: null
- Integers are 16-bit unsigned integer values
- Object: It's like an object oriented programming concept of object.
- /* */
- //
- add/concatenation: +
- subtract: -
- multiple: *
- divide: /
- assignment operator: =
- Identity Operator: ===
- Negation: !
- Not equal: !==
function testFunc() {
alert(“Test”);
}
No comments:
Post a Comment