| |
|
|
| 07 Apr 2014 09:51 PM |
I don't really know jus but...
Would it be if 10 == 10? |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2014 09:51 PM |
JS*
Sorry I'm on my ipad and it autocorrected. |
|
|
| Report Abuse |
|
|
Hypernym
|
  |
| Joined: 16 Oct 2013 |
| Total Posts: 20082 |
|
|
| 07 Apr 2014 09:52 PM |
| Its supposed to be if(10==10) |
|
|
| Report Abuse |
|
|
| |
|
Ariophy
|
  |
| Joined: 08 Mar 2014 |
| Total Posts: 81 |
|
|
| 07 Apr 2014 09:53 PM |
| never learned much of js srry |
|
|
| Report Abuse |
|
|
Hypernym
|
  |
| Joined: 16 Oct 2013 |
| Total Posts: 20082 |
|
|
| 07 Apr 2014 09:54 PM |
@for i'm aware
U forgot parenthesis tho
And u said u dont rly know, i clarified it for u |
|
|
| Report Abuse |
|
|
| |
|
Hypernym
|
  |
| Joined: 16 Oct 2013 |
| Total Posts: 20082 |
|
|
| 07 Apr 2014 10:00 PM |
Np
If u need us help from now on u can jus pm me |
|
|
| Report Abuse |
|
|
| |
|
Hypernym
|
  |
| Joined: 16 Oct 2013 |
| Total Posts: 20082 |
|
|
| 07 Apr 2014 10:01 PM |
Oh and uhh
If(10==10){
Remove the semicolon after (10==10)
Ill luk 4 mor problems |
|
|
| Report Abuse |
|
|
Hypernym
|
  |
| Joined: 16 Oct 2013 |
| Total Posts: 20082 |
|
| |
|
|
| 07 Apr 2014 10:03 PM |
| Do you need a semicolon after the if condition? You don't need it in C... Try taking away the semicolon after the if statement. Or try replacing the if (10==10) with if(true) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Hypernym
|
  |
| Joined: 16 Oct 2013 |
| Total Posts: 20082 |
|
|
| 07 Apr 2014 10:05 PM |
Put "var code" before the if statement, if code is really necessary
It doesnt do anything
Also, semicolons arent really necessary in javascript (they're only needed in very specific cases), but people consider them good practice |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2014 10:07 PM |
just take out code; completely
that's your error |
|
|
| Report Abuse |
|
|
| |
|
Hypernym
|
  |
| Joined: 16 Oct 2013 |
| Total Posts: 20082 |
|
|
| 07 Apr 2014 10:11 PM |
@island
Welll wot if he wanted 2 do somthin lik dis
if(10==10){ code=true }else{ code=false } console.log("You got a "+code+"!") |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 07 Apr 2014 10:13 PM |
^ That's nasty.
console.log("You got a"+(10==10)+"!"); //I don't remember whether or not you have toString booleans |
|
|
| Report Abuse |
|
|
Hypernym
|
  |
| Joined: 16 Oct 2013 |
| Total Posts: 20082 |
|
|
| 07 Apr 2014 10:15 PM |
I dont think u have 2 tostring dem
Its nasty cus from the screenshot, i'd assume hes trying to learn js, complex stuff like putting the condition in the console.log is l8r steps |
|
|
| Report Abuse |
|
|