I can understand why NaN is a 'number' but can someone explain to me why
console.log(typeof 1n+NaN);
console.log(typeof NaN+1n);
There is no such types in documentation.
I can understand why NaN is a 'number' but can someone explain to me why
console.log(typeof 1n+NaN);
console.log(typeof NaN+1n);
There is no such types in documentation.
Copyright © 2021 Jogjafile Inc.
It happens because return type of
typeofisstringand you don't use brackets.It equals to: