DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
JavaScript if, else, and else if
if
(
hour
<
18
)
{
greeting
=
"Good day"
;
}
else
{
greeting
=
"Good evening"
;
}
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#JavaScript
ADD COMMENT
Topic
COMMENT
Name
3+2 =
Submit