Introduction to JavaScript
2 min readJun 14, 2021
Here is my experience of attending a workshop by Vimal Daga Sir on Javascript.
What is JavaScript?
JavaScript is a text-based programming language used both on the client-side and server-side that allows you to make web pages interactive. JavaScript gives web pages interactive elements that engage a user.
What is JavaScript used for?
JavaScript is mainly used for web-based applications and web browsers. JavaScript is also used for:
1. Adding interactive behavior to web pages.
2. Creating web and mobile apps.
3. Building web servers and developing server applications.
4. Game development
Key-Takeaways:
- A browser acts as an interpreter for the code which is written in JavaScript. It runs the code, displays the output and helps to make the website interactive.
- We can implement javascript in our code using the <script> tag.
- The document.getElementById() method returns the element with the specified id.
- In a Document Object Model (DOM), each node is an object of root document.
- JavaScript has three different popup boxes — Alert box, Confirm box and Prompt box.
- Bill Of Materials (BOM) is a centralized source of information which contains a list of items used to manufacture a product and the instructions.
- To integrate CSS with JavaScript we can use the get.ElementByClass().
- AJAX helps to create fast and dynamic web pages.
- JavaScript Synchronous statements are executed in a sequence, i,e the next statement won’t execute until the previous execution is complete whereas JavaScript Asynchronous statements do not follow a sequence.
- The JSON.parse() converts a text into a JS object. It is used to read data from a web server and display it inside a webpage.
- The <pre>tag displays text in a proper readable format.
- GET/POST are two methods in http to send data to a server.