const fossils = {
"Rupam" : "Vocalist",
"Allen" : "Guitarist",
"Pom" : "Bassist",
"Deep" : "Guitarist",
"Tanmoy" : "Drummer"
}
let sabya = prompt("About Whom You Want To Know ?")
function bhed (ani) {
return sabya + " Is "
}
if (sabya == "Rupam") {
console.log(bhed() + fossils.Rupam)
}
else if (sabya == "Allen") {
console.log(bhed() + fossils.Allen)
}
else if (sabya == "Pom") {
console.log(bhed() + fossils.Pom)
}
else if (sabya == "Deep") {
console.log(bhed() + fossils.Deep)
}
else if (sabya == "Tanmoy") {
console.log(bhed() + fossils.Tanmoy)
}
else {
console.log(bhed() + " Not A Member Of Fossils !")
}top of page
To see this working, head to your live site.
JavaScript Code To Determine Something...!
JavaScript Code To Determine Something...!
0 comments
Comments
Commenting on this post isn't available anymore. Contact the site owner for more info.
bottom of page