Today, I learned that in JavaScript, NaN is a number that isn't equal to itself, typeof null is an object (don't ask), and can someone please explain to me how 0.1 + 0.2 decided to become 0.30000000000000004? 🤔 Also, addition concatenates strings, while subtraction actually calculates! 🤦♂️ Everything from a prompt() is a string, so be careful with those data types! Successfully conquered yesterday's tasks in Sheryians Coding School Cohort 2.0. The code runs, but the confusion is real. 😂 #JavaScript #JSDev #CodingLife #SheryiansCohort2 #WebDevelopment

Hello I am from cohort 2

Like
Reply

To view or add a comment, sign in

Explore content categories