JavaScript Porgramming Language || Why should you learn Js

in Zero to Infinity2 years ago (edited)

image.png
Source

"What is JavaScript?"

JavaScript is the most popular scripting language used in the Internet world. JavaScript is client-side scripting or browser scripting language created to make our browsing experience more efficient, interesting, and workable for many situations. JavaScript (abbreviated as JS) is a prototype-based scripting language that has a variable, weak type, and first-class functions. It is a language that supports an object-oriented, functional programming style. JavaScript is an object-oriented, dynamic programming language. It has a data type, operator, some important objects (which you can use all the time), and function or method. This is relatively easy to learn for those who are proficient in Java RC programming language by borrowing several syntaxes.

Example:

1.PNG

Result:

2.PNG

After clicking the button shows a random number between 0 to 1.

3.PNG

"Why learn JavaScript?"

There are three programming languages that ​​are used for web development.
JavaScript is one of the 3 languages ​​that every web developer uses to develop websites:

  1. Provides HTML web page content.
  2. CSS designs web pages.
  3. JavaScript makes the websites functional.

"JavaScript can modify HTML content"

JavaScript has multiple methods, one of which is the getElementById () method.

In this example the getElementById () method is used to find the HTML element with id = "test" and the content of the element is modified by "hello javascript".

Example:

4.PNG

Result:

5.PNG

The result after clicking the button.

6.PNG

"JavaScript can change HTML style"

Js also can able to change the Html style. By using different keywords and functions we can be able to change the Html style without even touching the raw Html.

Example:

7.PNG

Result:

8.PNG

The color changes to green when the button is clicked.

9.PNG

"Where to put JavaScript?"

JavaScript can be placed between head or body or both tags in HTML pages and we can also use Javascript in a separate file.

If you want to use JavaScript code in HTML, you must write the JavaScript code between the scripts tags.

10.PNG


Conclution

Javascript is a very powerful language for website building. Every web developer nowadays must have to know javascript to make a website workable. Big companies like Google, Youtube, Facebook, and Twitter to small companies use javascript for their websites and web applications. If you are interested in web development you must know javascript. You can use the free content on youtube to learn or can join a course also.

That's all today for Javascript programming language guys. Let me know in the comments if you like my post.

Sort:  
Your post has been successfully curated by our team via @nane15 at 50%. Thank you for your committed efforts, we invite you to do more and keep posting high quality posts for a chance to win valuable upvotes from our team of curators and probable selection for an additional upvote later this week in the Top Seven.

received_388032689541375-1.jpeg

Note: You must enter the tag #fintech among the first 4 tags for your post to be reviewed.

Thank you so much for supporting me.

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 60216.66
ETH 2326.87
USDT 1.00
SBD 2.48