You are viewing a single comment's thread from:

RE: A WILD BUG APPEARED! - WHALESHARES UP FOR GRABS!!

in #contest7 years ago

These are the bugs.

"elseif"  

instead of "else if"

"{ consle.log(x + " even");"  

There is no curly base at the end.

"else"  

There is no 'if' there.

expected output.

for (var x=1; x <=5 ; x+=) 
  if (x === 0) { console.log(x +  " is zero"); }
  else if (x % 2 === 0) { consle.log(x + " even"); }  
  else if { console.log(x + " is odd"); }
}

"People are mostly focused on defending the computers on the Internet, and there's been surprisingly little attention to defending the Internet itself as a communications medium." - W. Daniel Hillis

Sort:  

hello @seyiodus, I did a edit with the question as I understand that it seems a little confusing. You can edit your answer once. Good Luck!

Coin Marketplace

STEEM 0.18
TRX 0.16
JST 0.029
BTC 76065.61
ETH 2908.14
USDT 1.00
SBD 2.59