+ 2
How to use js
š¤š¤š¤š¤
4 Answers
+ 15
JavaScript is most commonly used as aĀ client side scripting language. ThismeansĀ that JavaScript code isĀ writteninto an HTML page. When a user requests an HTML page with JavaScript in it, the script is sent to the browser and it's up to the browser to do something with it.
https://www.w3schools.com/js/
+ 5
JS makes your website responsiveš
+ 4
JavaScript is one of theĀ 3 languagesĀ all web developersĀ mustĀ learn:
Ā Ā 1.Ā HTMLĀ to define the content of web pages
Ā Ā 2.Ā CSSĀ to specify the layout of web pages
Ā Ā 3.Ā JavaScriptĀ to program the behavior of web pages
https://www.w3schools.com/js/ this article will help you š
+ 3
Hello. Put your JavaScript code between <script></script> tags in your HTML project. If you don't want to use HTML, only JS, then still save your project as HTML, but don't put any HTML content in it.
Example:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>*your code*</script>
</body>
</html>
You can create JavaScript and HTML code in a simple text editor on your computer and save the file as *name*.html. Then you can simply click it and the project is run on your web browser.
More info:
https://www.w3schools.com/html/html_scripts.asp