+ 1
How to make input in if else statements in Javasript?
input in if else
7 Answers
+ 6
if (true)
input = prompt()
// else...
alert(input)
+ 4
var x;
if(...) {
x=prompt(...);
} else {
x=prompt(...);
}
+ 3
if(predicate) {
true_variant = prompt("Your predicate is true, enter some data", "");
//...
} else {
false_variant = prompt("Your predicate is false, enter some data", "");
//...
}
+ 1
@donna thanks!!!!!
0
@Kawaii thanks!!!đ