Why JavaScript is used into html document? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

Why JavaScript is used into html document?

Can I use JavaScript in various programming languages.

1st Dec 2016, 5:16 AM
Sandeep Thakur
Sandeep Thakur - avatar
8 Answers
0
I think JavaScript only supports html 5 document format.
1st Dec 2016, 5:17 AM
Sandeep Thakur
Sandeep Thakur - avatar
+ 1
It's important to understand how JavaScript is working as its often used as client side scripting language (can be used server side too). Other scripting or programming languages like PHP or MySQL are commonly used server side, although you may run them on your local machine too if you want. For JavaScript it means, all functions and code you're writing will execute and do stuff on the person visiting the website containing that JavaScript file. And JavaScript can be used in more than websites. You can also use it in your browsers command line panel or other software projects like games!
1st Dec 2016, 6:06 AM
Patrick Stranz
Patrick Stranz - avatar
+ 1
javascript is used to add interactivity to the webpage there is no effect if it is in page or different source page. yes it used in many languages. you can add it for script
1st Dec 2016, 8:28 AM
Sandeep Chatterjee
+ 1
yes
1st Dec 2016, 9:40 AM
Nguyễn Hoàng Long
Nguyễn Hoàng Long - avatar
+ 1
JavaScript plays very important role in controlling the flow of ur website .. People know that js is very useful not only in form validation but also in creating repetitive animation, web ppt and a user interface control for making ur website look more beautiful and interactive to users..
20th Dec 2016, 12:31 PM
Shivam Gupta
Shivam Gupta - avatar
+ 1
Here I am going to provide you an useful link about JavaScript: http://www.improgrammer.net/simple-yet-powerful-javascript-tips/
7th Jan 2017, 6:49 PM
Samuel Mayol
Samuel Mayol - avatar
0
yes you can use it in various language it is used in Java flash Android etc commonly not only in web
8th Dec 2016, 6:50 AM
Sandeep Chatterjee
0
it supports all previous versions of html and css
11th Dec 2016, 11:33 AM
Shivam Gupta
Shivam Gupta - avatar