"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:
Result:
After clicking the button shows a random number between 0 to 1.
"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:
- Provides HTML web page content.
- CSS designs web pages.
- 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:
Result:
The result after clicking the button.
"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:
Result:
The color changes to green when the button is clicked.
"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.
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.
Note: You must enter the tag #fintech among the first 4 tags for your post to be reviewed.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you so much for supporting me.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit