0

IF Syntax in JS

Please, make a script on JS with IF...ELSE syntax.

25th Nov 2017, 8:41 AM
Master000
1 ответ
+ 1
var int = prompt("Enter a number."); if (int < 18) { document.write("Number too small"); } else { document.write("Welcome!"); }
25th Nov 2017, 8:45 AM
Master000