Good day to all. I just started to learn javascript and faced such a thing.
In the textbook by Ilya Kantor there is such a moment. 
Essence of the question. If you do not declare any variables and set the alert(typeof $); code alert(typeof $); , then the alert function will show the type "function" in the window. Where can I read about it or is it a design language mistake? After all, he had to issue undefined .