0

why am I getting an error message

var age=31; var limit=21; var job="You are hired! <br/> When can you start?"; if (age < limit){document.write(job)}; else {alert ("Sorry you are too young.");}

5th Oct 2016, 8:07 PM
calaba564
3 Respostas
0
varible not for strings. replace it.
5th Oct 2016, 10:14 PM
HawkEye
HawkEye - avatar
0
can you be a little more specific I am new to programming
5th Oct 2016, 10:40 PM
calaba564
0
nevermind I found the issue.. I had a semicolon outside of the curly bracket on the 4 line
5th Oct 2016, 11:00 PM
calaba564