JavaScript: Simon masters Infinity

On Tuesday and Wednesday Simon spent a great deal of his time training himself JavaScript on the w3schools.com website. He explained every action to me in great detail, it amused and fascinated him to be able to make the computer return “infinity” as a number or convert any object into a number. I think it felt to him like he was a powerful magician. There was also quite a lot of math involved. Below are just a few picks.

 

 

NaN (not a number):

javascript-1-8-nov-2016-1 javascript-1-8-nov-2016-2 javascript-1-8-nov-2016-3

javascript-1-8-nov-2016-4-1

Equality Operators:

javascript-1-8-nov-2016-5

javascript-1-8-nov-2016-6

Booleans:

javascript-1-8-nov-2016-7

Absolute value in math:

javascript-1-9-nov-2016-1

Null:

javascript-1-9-nov-2016-3

Booleans vs Numbers vs Strings

javascript-1-9-nov-2016-5javascript-1-9-nov-2016-6

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s