DEV Community

Discussion on: JavaScript Struggles - Part 3 | String Auto Converting

Collapse
 
tourmaline profile image
Tourmaline

Thanks for the post! There are also the circumstances when the -, * and / operators are used with strings that are not numbers like -'string'; or 'string' * '5'; and they just evaluate to NaN.

Collapse
 
abdelrahman_dwedar profile image
‘Abdelraḥman Dwedar 👨🏻‍💻🇵🇸

Glad you liked it! 😊

I'm happy you noticed that, actually I said earlier that if you converted a string that contains text it'll be NaN in the pervious part .

Have a nice day

Collapse
 
tourmaline profile image
Tourmaline

Thanks for the quick answer, I will check the rest of the parts of this series since it has interesting information.

Thread Thread
 
abdelrahman_dwedar profile image
‘Abdelraḥman Dwedar 👨🏻‍💻🇵🇸

Thanks for reading, I hope you liked them. 👍