Numbers ==> Numeral values Strings ==> Literals Boolean ==> true/false Undefined null Immutable Types Vs Mutable Types: ================================= Primitive Types ==> Immutable Types Immutable ==> data once we can define, we cannot be allow for modification string = "JavaScript"; console.log(string[0]); console.log(string); string[0] = 'j';; console.log(string); Non-Primitive Datatypes: ======================== ==> Collections ==> Mutable after the definition we can allow for modification. ==> Non-primitive datatypes are: 1) Array 2) Object 3) Map Array Type =========== How we can understand an array? =============================== form a queue form a stack form an array ============================================================== Aakash Browser 3-people were Ashwin History Ashwin ==> 9am ==> 11 am Asha Asha ==> 9.30am ==> 10am Jyothi Aarohi ==> 8.30 am ==> 12 noon FIFO ==> First Input First Output LIFO ==> Last Input First Output ==> array is collection of any type of elements array elements should be order but accessing should be random. Why we need arrays? =================== ==> for programming perspective, arrays can be used for reducing the overhead and complexity. Electronic Devices Storage Magnetic Tapes Disk/DVD/Floppy Java ==> Strongly Typed C/C++ ==> Statically Typed JS/Python ==> Dynamically typed ========================================== Is array size dynamically changed? ================================== Yes.