+ 2
Code output confusion
When I run this code the output is error but In the solution of this problem the output is 1 how it possible? <script> var a=true; var b="01"; alert(number(a==b)); </script>
2 Antworten
+ 5
The 'n' of number should be in capital letter:
var a=true;
var b="01";
alert(Number(a==b)); //capital N
+ 2
Ohh thanks 😊