Java Script is a huge topic so the question it comes in my mind. Where do we begin?. The simple answer is the language itself. As a human, our mind really understands languages like English, Hindi, Etc. But did you notice all the languages have a different structure and the same meaning?
Let’s understand by an example: Let’s assume you ask your browser to add two numbers.
- I open the browser.
- Inspect elements and navigate to console.
- Enter 3 + 3 and press Enter.
As I pass the above command to my chrome browser it returns a response a 6.
Let’s see an example of a Simple Java Script Program.
Java Script Program to add two number
<script> document.write("Total of 5 + 6 is: "+(5 + 6)); </script>