Quantcast
Channel: Tudor Barbu's blog
Viewing all articles
Browse latest Browse all 28

Javascript question

$
0
0

I’ve found the best way to probe somebody’s javascript knowledge. Ask him a simple question! One question: What will the following code produce and most important why?

window.onload = alert( 'message 1' );
alert( 'message 2' );

Viewing all articles
Browse latest Browse all 28

Trending Articles