why did JavaScript come into the picture?
The way Eich saw it, higher-end programmers used Java and it might be considered a “component language.” Eich created JavaScript to fill the need for a “glue language” used by informal programmers and designers. This allowed programmers to use JavaScript to put together components and automate interactions