Information and how it works

• What is JavaScript?

So what exactly is JavaScript? JavaScript is a ype of scripting program - a scripting langauge is a more advanced language that lets you exicute special task and make source code for a computer to exicute - that allows you to implement more complex features into your webpages. When you see somthing on a webpage that isn't just static text it indicates there is JavaScript for example, things like buttons, animated graphics, interative maps ect. are made with JavaScript. JavaScript can also be used for other more advanced things including you can make games with JavaScript because it is an object-oriented language - meaning it uses objects and data rather than functions and logic. Because the way javaScript works it pairs very well with web development because it allows more advanced intigration and tools, even this website uses javascript. Heres an example of JavaScript from this websites for the makeshift (fake) register.

code

Looking at the example you might think thats a lot but JavaScript is one of the more esier languages and it doesnt take a very long time to learn. There are a few basics and the structure but once you get most of that down you can do almost anything with JavaScript.

• How exactly Does it work?

JavaScript is What is called a client-side scripting language. That means that it is a computer programming language that runs inside your internet browser. The way JavaScript works is very interesting. When you have JavaScript in your code when the web browser loads it has a built-in interperter that reads the JavaScript so that it is able to run its functions. JavaScript works by giving the webapge a function or script to run when the page is loaded or somthing is clicked. The reason in HTML JavaScript has to be at the end of the code is because it has to use the script element to load and when a function is triggered it looks for the script to find that JavaSript code and runs it so when the JavaScript is not a the bottem it can break the HTML code and the website wont load correctly afterwards.

• Why use JavaScript?

JavaScript isn't to hard to learn and its a very usefull language to learn. Knowing JavaScript allows you to be able to make a more interactable and advanced website in many ways. JavaScript lets you link buttons to certain pages or websites it can add iteractable elements and many other things. JavaScript is also Designt to mostly fit with HTML and also be used on its on for making other things like games and more advanced aplications to work with differnt files and other coding languages. There is also a differnt type of JavaSript that i didnt mention called Three.js (Three.JavaScript) that is harder to learn but it allows you to make 3d interactable websites and other things but thats a differnt topic you can look up if you want more information.