I know that IEEE 754 defines NaNs to have the following bitwise representation:
0
1
https://softwareengineering.stackexchange.com/questions/185406/what-is-the-purpose-of-nan-boxing
Take a look at that link for an explanation of how js engines use nan boxing