DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
IF else statement
var
age
=
20
;
if
(
age
<
18
)
{
console
.
log
(
"underage"
)
;
}
else
{
console
.
log
(
"let em in!"
)
;
}
PREVIOUS
NEXT
Tagged:
#IF
#statement
ADD COMMENT
Topic
COMMENT
Name
7+6 =
Submit