+ 1
if-statement chain
With Javascript, can you put it-statements inside of it-statement?
5 Answers
+ 18
yes, Nested if statements
it's there in the course...
https://www.sololearn.com/learn/JavaScript/1138/?ref=app
or u can use switch statements..:
https://www.sololearn.com/learn/JavaScript/1139/?ref=app
outer links...:
nested if:
https://www.w3schools.com/js/js_if_else.asp
switch:
https://www.w3schools.com/jsref/jsref_switch.asp
0
Figured out that there was a else if statement, which solves the problem.
0
ассапппава
0
павапа
0
ппсаппппппмииииирррррппрррррриррроррррррооотллгршо и