I am stuc! can someone please check my first javaScript code?


#1

var like= [dong, shim, lee, george, romy]
var hate= [kim, kim1, hyeree, choi, choi]

var input = prompt ("which list would you like to see? someone that i 'like'? or 'hate'? ")

if (input === "like")
{
for (var i=0; i {
console.log ("I like" + " " + like[i]);
}
}
else if (input === "hate");
{
for (var i=0; i {
console.log ("I hate" + " " + hate[i]);
}
}
else
{
console.log ("type either 'like' or 'hate');
}


#2

and I did add " " for data just now