Lecture 32

 //array

//object



// let value = [10, 20, "hello world"]

// let a = "hello world"

// let result = a.includes("world");


// console.log(result  )
// console.log(value[1]);

// value[1] = 100

// console.log(value);


// value.push("hello pakistn")
// console.log(value);



let array_2 = [
    //   0   1   2  
    [10, 20, 30],
    [20, 222]
]

console.log(array_2[1][2])



let obj = {
    "firstName": "Bilal",
    "lastNAme": "Javed",
    "email": function () {
        alert("hello email")
    }

}


console.log(obj["email"]())

Comments