number needs to be in quotes here or it doesn’t work. That surprised me because I thought that would make it a string of the word number. I tried putting
into the console and it returned
So I guess that makes sense. It just surprised me. I guess because I’m asking to compare the typeof it would never return the value of a string, just what type. It still seems strange that it should be in quotes but there you go!