INTRODUCTION TO JAVASCRIPT LANGUAGE

Macanthony Okeke
LearnFactory Nigeria
3 min readSep 3, 2019

WHY JAVASCRIPT?

So often people ask this question “why JavaScript?!” and not some other language. well the answer to this question is pretty easy because today JavaScript is really the language that powers the entire internet, it allows developers to add complexity, dynamics to websites and web-apps and it also allows the usage of some popular frameworks like React.js,Angular.js and Node.js to build even more advanced web application. Now all of this requires a deep share of JavaScript knowledge but sometimes JavaScript can be difficult to learn but not to worry, once you learn the basics things like variables, functions, arrays,data-types, control flows, objects etc. you are good to go!

WHAT IS JAVASCRIPT?

JavaScript is a lightweight,cross-platform,object-oriented computer programming language. hahahahaha that sounds a bit fancy but don’t worry i will explain.

Lightweight

JavaScript being a lightweight language just means that it doesn't use much memory of the computer it has relatively simple syntax and features.

Cross-platform

Being cross-platform just means the language can be used in different platforms and systems.

Object-oriented

Then being an objected-oriented language means that is a language that is based on objects.

Now apart from HTML and CSS , JavaScript is one of the three core technologies of web development and it is most commonly used as a part of webpages but it is also used on environments that are not web based.

Before, JavaScript was a client-side language only but today it is both a client-side and server-side language thanks to node.js,we can use JavaScript on the server as well.

WHERE DOES JAVASCRIPT FIT IN?

Am sure you already know that HTML is responsible for holding the content of a webpage and CSS is responsible for styling this content and the layout,then JavaScript is a programming language that allows us to add dynamics into the webpage.things like dynamic effects,manipulation of the content etc.

we can also put this in terms of nouns,adjectives and verbs.

NOUNS

<p></p>;

means “paragraph”. so here the HTML does the noun like saying that the P element is a paragraph

ADJECTIVES

p {color: red;}

means “the paragraph text is red”. Now the CSS is the Adjective because it describes the noun like saying the paragraph is red.

VERBS

p.hide();

means “hide the paragraph”. finally JavaScript is the verb like saying hide the paragraph, so basically we are performing an action on the paragraph tag.

In order to write our JavaScript code we need a place to write the code and that's inside the script tag in the HTML file or you can create an external JavaScript file and link it to your HTML file.

SUMMARY

JavaScript is what made modern web development possible: it allows us to add Dynamic effect and interactivity to our websites and also helps to develop complex modern web app that we can interact with. today there are many JavaScript libraries and frameworks out there that implement different architectures and help developers in building complex app easily and faster(e.g JQUERY,ANGULAR.JS,REACT).

So basically JavaScript is a fun, interesting programming language….what are you waiting for?!!! get your self ready and start coding…

Hope this was helpful to you? If it was then don’t forget to clap and leave a comment.

Thanks.

--

--