Java Script
Java Script
Data Types::number, string, Boolean, null, undefined, Conditional statements if, if-else, if…else-if…else,
symbol, bigint(123n) switch
Let, var, const While let and const are block-scoped, var declarations are Looping Statementsfor, while, do-while
either globally scoped or function-scoped. Let variables can be updated but not re-
declared, const variables cannot be updated or re-declared, and var variables may for-in loop for(var i in firstaname)
both be updated and re-declared inside their scope.
Pascal caseMyName(classes name) Promptsame as alert but with text box used for user
i/p….always returns in string
Snake casemy_name
TYPE CONVERSION FUNCTION..js9
Operators::unary, Binary, Ternary operator
Number(), String(),Boolean()
Arithmetic +, -, *, /, %, **, ++, --, a++ postfix; --a
prefix STRING…js10
Assignment =, +=, -=, *=, /=, %=, **= Type coercion when js interpreter implicit converts a value to
one type to another internally
Logical &&, ||, !
Strings are immutable
Comparison >, <, >=, <=, ==(loose equality; ignores substring() give specific character asked for
that data type), ===(tight equality; checks the
datatype),!=,!==(true) toUpper() converts into capital letters
ARRAY..js11
Nested Object
FUNCTION..js13
DefinitionFunction myFunction(){ <func-body> }
CallingmyFunction();
arrow function()=> { }
Call-back functions…js14
DE Structuring..js15
Array de-structuring [ ]
Object de-structuring…js16{ }