const products ={
"name":"Laptop",
"price": 1000,
"brand": "Dell",
"inStock": true,
"features": ["16GB RAM", "512GB SSD", "Intel i7 Processor",120]
}
console.log(products); // Output: Laptop
const profile ={
"name":"vikas nagar",
"isFollow": false,
"followers":1000,
"following":549,
"posts":32,
"bio":["Dewas",21,"Trust is imp"]
}
// to take input run this code in browser
// let check = prompt("What you want to know about vikas profiles \n1. Name\n2. Followers\n3. Following\n 4. Bio");
// if(check =="Name"|| check == 1){
// console.log("Name : "+ profile.name);
// }
//print the array using loop
for(let info of profile.bio){
console.log(info)
}
To embed this program on your website, copy the following code and paste it into your website's HTML: