English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
0

heres what the code should look like in somewhat plain english:
If this month = January to March
{Hello}
Else
{Goodbye}

Can anyone come up with the code? I just started using javascript so i couldnt really follow any tutorials..its all cut and paste for me. Thanks in advance!

2007-04-25 01:49:49 · 2 answers · asked by jlp.media 3 in Computers & Internet Programming & Design

2 answers

today=new Date();

if (today.getMonth() > 2) {
document.write('Hello\n');
} else {
document.write('Goodbye\n');
}

Indent as necessary.

2007-04-25 02:04:36 · answer #1 · answered by AnalProgrammer 7 · 0 0

2007-04-25 09:21:31 · answer #2 · answered by Anonymous · 0 2

fedest.com, questions and answers