14 Review


#1

var games = prompt("What games do you love");
var pc = true;
var console = true;

switch(games)
{
case 'Nintendo':
console.log("NINENDO ROCKS!");
break;
case 'Playstation':
console.log("PS ROCKS!");
break;
case 'Xbox':
console.log("NOOBS!");
break;
default:
console.log("PC GAMER HURRR");
}

var allPlatform = function()
{
if(pc && console)
{
return = true;
}
else
{
return = false;
}
}

allPlatform();


#2

var allPlatform = function()
{
if(pc && console)
{
return = true; // should be without =
}
else
{
return = false; // should be without =
}
}

What this function should do?


#3

ty so much, iam really loving the help we can get here =)


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.