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.
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 ⇲.
string
NaN
Thanks for the quick answer, I will check the rest of the parts of this series since it has interesting information.
Thanks for reading, I hope you liked them. 👍
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
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 beNaN
in the pervious part ⇲.JavaScript Struggles - Part 2 | Numbers
‘Abdelraḥman Dwedar 👨🏻💻🇵🇸 ・ Oct 30 ・ 2 min read
Thanks for the quick answer, I will check the rest of the parts of this series since it has interesting information.
Thanks for reading, I hope you liked them. 👍