Friday, August 13, 2021

New Tricks

 Started looking at the javascript lecture in the series. There have been 

advances in Javascript since last I looked. Like the 'query selector()' 

function, which returns the inner html of , for example, an <h1> tag.

Used cleverly, it can accomplish the following:



It is also possible to use triple equality to type check. Below,

from W3Schools. The variable letter x is assigned the value of 5,

which is a number.









No comments: