I
I
Ily4farmer2020-04-26 17:44:50
JavaScript
Ily4farmer, 2020-04-26 17:44:50

How to explain such problem solving?

Why is the response NaN in the expression: [ ] + false - null + true ?
Why is the sum of the expression [ ] + 1 + 2 equal to 12?
alert( "1"[0] ) prints 1
Why does "hedgehog" > "apple" print true?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Robur, 2020-04-26
@Robur

As you begin to learn the language and get to type casting, you will find your answers.

A
abberati, 2020-04-26
@abberati

This and other articles that are Googled for "type casting in JavaScript"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question