JavaScript Quiz #8 (One line Quiz)

May 9, 2013 in JavaScript

Assume that we have the following short JavaScript code:

<script>
    var result = (2..valueOf() + ({z : 10, x : 20}).x);
    alert(result);
</script>

What is the output of each alert?

Know the complete answer

Comments are closed.

Skip to toolbar