Ques. explain Data types
Ans. Javascript have range of data types for storing values
String: A sequence of characters enclosed in qoutes
Let myString= "Hello World"
Number: Numeric values,including integers and floating point
let myNumber = 42;
Boolean: Represent true or false values
let myBoolean = true;
Array: An ordered collection of values
let myArray = [1,2,3];
Null Intentionally represent no value
let myNull = null;
Object: Holds key value pairs. keys are strings and values be any data type.
let myObjeect = {name:johnjohns, age: 30}
Undefined: Signifies an uninitialized variable.
Let myUndefined; // undefined