Computer science: JavaScript: ‘false’ != false

Self-tutoring about computer science: the tutor mentions a test he ran tonight with JavaScript.

Boolean(‘false’)=true while Boolean(false)=false on the Edge and Firefox JavaScript consoles I tested this evening.

Source:

Jones, Darren. JavaScript: Novice to Ninja, 2nd ed. Collingwood: SitePoint Pty, 2017.

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply