Yesterday, I wanted to make a hex color previewer because I google searched the hex values and didn't get a color, instead I got Japanese sites & obscure cooking products. So I made the previewer, in simple JS and HTML. This morning, I was experimenting with the hex values and found that random words are valid as a hex value. 'Firetruck' is a nice yellow. I asked one of my teachers about it and he wondered if JS was interpreting 'firetruck' as a hexadecimal value. I set up an alert, to display the input of the user, and the background color of the document. Javascript is not switching to hex, but the word 'firetruck' in hex is yellow.
What is going on???