Blog 22
Explain what this code does.
var age=prompt('What is your age?', '21' )
What is the answer to this code? var a = "dec " + 21 + 10
What is the result of the code? '20' + 11
What is the result of the code? var e = 9 + 11 + '13'
1: it makes a default answer to the question
ReplyDelete2: dec 2010
3: 2011
4: 2013
it makes the default answer 21
ReplyDeletedec 2010
2011
2013
makes a default answer to the question
ReplyDeletedec 2011
2011
2013
the default answer will be 21
ReplyDeletedec 2010
2011
2013
-Zach
default answer=21
ReplyDeletedec 31
2011
var=2013