JavaScript Quiz #11

November 2, 2013 in JavaScript

Assume that we have the following short JavaScript code:

<script>
    var x = !!"Hello" + (!"world", !!"from here!!");
    
    alert(x);
</script> 

Will this code succeed or fail? and if it succeeds, what is the output of the alert?

Read the complete answer

Comments are closed.

Skip to toolbar