Assignment
// Q1 - TO PRINT RANDOM NUMBERS FROM 1 TO 6 (DICE)
let random = Math.floor(Math.random() * 6) + 1;
// Q2
let car = {
name: "benz",
model: "Dealer 169",
color: "Black",
};
console.log(car.name);
// Q3
let person = {
name: "Steve",
age: 27,
city: "Los Angels",
};
console.log(person.city);
person.city = "New York";
console.log(person.city);
person.country = "United States";
console.log(person.country);


Comments
Post a Comment