# data[].attributes.body
1.let animal = 432;
let animal = {
name: "tiger",
type: "mammal",
age: 3
}

console.log(animal);

2.var array_names = ["Nick","linus","Edzel];
array_names.pop('NICK');
array_names.push("John");
array_names[2] = "John"
//

array_names.pop();
array_names.push("John")
3.
document.querySelector('#component-a")

4.(forEach=>5,array_names=0,array_names++);
console.log(array_names);
//

array_names.forEach((name) => {
console.log(name);
});
5.  var a = true;
var b = 5 > 10;

if (a && b) {
console.log("option a")
} else {

console.log("option b")

}

# data[].attributes.body
1.var animals = {
name : "elephant",
weight : "90kg",
food ; ["banana" , "sugar cane"],
}

2.var array_names = ["Nick" , 'linus' , "edzel"]

array_names.pop ("edzel");

array_names.push ("john");

# data[].attributes.body
var animal
var array_names = ["Nick","Linus","Edzel"];
document.querySelector =

var a = true;
var b = 5 > 10;

if (a && b) {
console.log("option a")
} else {

console.log("option b")

}

# data[].attributes.body
1.let animal = 432;
let animal = {
name: "tiger",
type: "mammal",
age: 3
}

console.log(animal);

2.var array_names = ["Nick","linus","Edzel];
array_names.pop('NICK');
array_names.push("John");
array_names[2] = "John"
//

array_names.pop();
array_names.push("John")
3.
document.querySelector('#component-a")

4.(forEach=>5,array_names=0,array_names++);
console.log(array_names);
//

array_names.forEach((name) => {
console.log(name);
});
5.  var a = true;
var b = 5 > 10;

if (a && b) {
console.log("option a")
} else {

console.log("option b")

}

# data[].attributes.body
2. var array_names = ["Nick", "Linus", "John"];

# data[].attributes.body
var animals
var arrays_name = ["Nick","Linus",'Edzel'];

document.querySelector =
var a = true
var b = 5>10
if (a && b) {
console.log("option a")
} else {

console.log("option b")

}

# data[].attributes.body
2.var array_names = ["Nick","Linus","idzel"]
array_names.pop()
array_names.push("John")

# data[].attributes.body
📎 My luminous wall
. Declare an object which
 . Declare an object which use to describe animals.
Empty
Questions
Questions
https://padlet.com/leeliwei930/1mq5b4x6w1m4

1. Declare an object which use to describe animals.

2.  var array_names = ["Nick", "Linus", "Edzel"];

Try to replace Edzel with John

# data[].attributes.body
("component-a")
4.

# data[].attributes.body
https://padlet.com/leeliwei930/1mq5b4x6w1m4

1. Declare an object which use to describe animals.

2.  var array_names = ["Nick", "Linus", "Edzel"];

Try to replace Edzel with John

3. Using document querySelector to pick an element with id = "component-a"

4. Based on question 2, write an foreach loop and print out on the console using console.log

5.  var a = true;
var b = 5 > 10;

if (a && b) {
console.log("option a")
} else {

console.log("option b")

}

Based on  the code aboved, show the output.