Learning About JavaScript….

Gajindu Bandara
2 min readJun 1, 2021

--

When I was contributing to a website I met an issue that requires javascript to solve that issue. So for that issue, I had to search like “How to do this in javascript, How to do that in javascript”.It became very difficult so I thought about following a javascript online course. I have chosen the online javascript course on the w3chools website.

Javascript is a popular programming language and it's easy to learn. I started javascript from the basics. The first thing is that javascript is inserted between <script> and </script> tags in HTML. Also, the scripts can be placed in the body or head of the HTML and can use any number of scripts in the HTML. There are four ways that you can display javascript,

  • innerHTML -> Javascript can use the document.getElementById(Id) to access an HTML element with the Id
  • document.write() -> This is used for testing purposes
  • window.alert() -> To display data by a alert box
  • console.log() -> Used for debugging purposes

After that, I learned about the data types in Javascript which are primitive data and complex data. Strings, numbers, boolean and undefined are the primitive data on javascript. Complex data are the functions and objects.

I learned about using javascript arrays so that we can include multiple values in a single variable. Also, I learned about Arithmetic operators, functions, variables, loops, and some other things about Javascript. I’m still at the beginning of this javascript course, there's a lot more ahead and I’m curious to learn them.

--

--

No responses yet