0

FIND THE MISTAKE IN MY CODE"FIND THE MISTAKE".

WHO FIND MISTAKE?

9th Sep 2017, 1:49 PM
Metaaa
8 Réponses
+ 2
well the code doesnt make sense but I will say that: -when comparing two things use == not = -the way you used the switch statement is wrong you need to just relearn it -you defined the value of n1 before the variable was asigned?
9th Sep 2017, 2:08 PM
Enzo
Enzo - avatar
0
please check my code un the name of "Find the mistake in this code".
9th Sep 2017, 1:50 PM
Metaaa
0
I checked. When i can use switch? How i can with click on "click"(sumbit),it value grater?
9th Sep 2017, 6:26 PM
Metaaa
0
How is my another codes?
9th Sep 2017, 6:27 PM
Metaaa
0
you are using the right syntax for it now but it will always use the default case as lang is 'USA' and none of the cases are made for that. Im not sure what you mean by the click thing but you can add a onclick="functionName ()" in any html tag and it will run the js function when you click it.
9th Sep 2017, 6:45 PM
Enzo
Enzo - avatar
0
no.example if you click on "click" increase the click value of a unit.
9th Sep 2017, 7:31 PM
Metaaa
0
all right.so i corect select a syntax (for switch)
9th Sep 2017, 7:34 PM
Metaaa
0
i dont know what the uefi1607 variable is for but it doesnt actually do anything in the code. what the switch does is test each case with lang (in switch brackets) and if none of the cases equal lang then the default case is ran which is what happens here. The click thing is done how i said if im understanding it right
9th Sep 2017, 7:50 PM
Enzo
Enzo - avatar