Module 1 : Classless Objects

Section 1 : What is an object?

Primitive data types

https://developer.mozilla.org/en-US/docs/Glossary/Primitive

console.log(typeof 2.5); // -> number
console.log(typeof "one two three"); // -> string
console.log(typeof false); // -> boolean

let nr = 2.5; 
nr = nr / 2;
console.log(typeof nr); // -> number

let name1;
console.log(typeof name1); // -> undefined

Array as a complex type

https://www.codinn.dev/javascript/complex-data-types

let a = [10, 20, "en to tre", true, 50];
a[4] = a[4] * 2;
console.log(a[0]);    // -> 10
console.log(a[2]);    // -> en to tre
console.log(a[4]);    // -> 100

An object as a different type of array