What is java script really for | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is java script really for

I am in the process of learning java script but I don't understand its language yet and what is it used for? Can anyone please explain it to me in dummy terms? Do you really need it to build webpages? Besides HTML and CSS?

27th Feb 2018, 7:56 PM
Felix Viruet
Felix Viruet - avatar
4 Answers
+ 2
You can do great looking and responsive sites only with HTML and CSS. But there are limits, most of all in respect of user interactions. The role of JS is to fill this gap. Concretely, JS allows you to change HTML and CSS elements. You want that certain words of a paragraph are highlighted after a user clicked 3 times a button, stayed 44s on the site and scrolled more than 2 times... in this case you would need JS.
28th Feb 2018, 9:22 AM
wenz
wenz - avatar
+ 6
JavaScript , often abbreviated as JS, is a high-level, interpreted programming language. It is a language which is also characterized as dynamic, weakly typed, prototype-based and multi-paradigm. Alongside HTML and CSS, JavaScript is one of the three core technologies of World Wide Web content engineering. It is used to make webpages interactive and provide online programs, including video games. The majority of websites employ it, and all modern web browsers support it without the need for plug-ins by means of a built-in JavaScript engine. Each of the many JavaScript engines represent a different implementation of JavaScript, all based on the ECMAScript specification, with some engines not supporting the spec fully, and with many engines supporting additional features beyond ECMA.
27th Feb 2018, 8:09 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 4
In dummy terms? Et make yer web thangy moor enteractuv. Basically, it's a client-side language that allows you to add all of the interactive functionality that one expects from modern websites. Is it required? No. Only HTML is required. However, does a car require wheels? No, but it does a lot of cool stuff when it does have wheels. Javascript is your website's wheels; it gets things moving.
27th Feb 2018, 8:10 PM
Fata1 Err0r
Fata1 Err0r - avatar
0
Thank you all for the feed back.
3rd Mar 2018, 2:55 AM
Felix Viruet
Felix Viruet - avatar