– Programming interfaces for browser applications (APIs) – APIs built into web browsers, offering features such as dynamic HTML creation and CSS style setting, collecting and manipulating a video stream from the user’s video camera, or generating 3D graphics and images.
– Third-party APIs to allow developers to integrate functionality into their sites from other content providers, such as Twitter or Facebook.
– Third-party frameworks and libraries that you can include in HTML code that allow you to build sites and applications quickly.
Next, I will present some aspects of the main language, and you will play with some API functions of the browser.
An example “hello world.”
1. First, go to your test site and create a new directory called “scripts.” Then, in the new scripts directory, you just created, create a new file called main.js. Save it to your scripts directory.
2. Next, add the following element to a new line in your index.html file just before closing the </body> tag:
<script src = “scripts / main.js”> </script>
4. Now add the following code to the main.js file:
var myHeading = document.querySelector (‘h1’);
myHeading.textContent = ‘Hello world!’;
After that, set the value of the property of the myHeading textContent variable to “Hello world!”