What is the function of javascript?

10/10/2019 3:21:35 AM

Souvik Sen

15 Answers

New Answer


It adds functionality and logic to HTML webpages. https://www.sololearn.com/Course/JavaScript/?ref=app


Functions are custom code defined, they let you extract the code and run it as a separate unit.


To add interactivity and dynamism to web pages amongst others.


To make a website or web application more interactive by adding some logic to it. You can create a dynamic animation, respond to user actions like mouse click, etc.


It is use in create website and web page.


Hi, Functions are generally used to perform a particular task. It also used to perform the same set of codes multiple times. In JavaScript, you have to write a function keyword to declare a function. Following is the syntax of declaring the function. Syntax: function fun_name(par1,par2,...){ code to be executed. }


How do i use colors such as dark blue, pale blue etc esp in CSS coz I' m only able to apply blue


Logic can be illogical. Dynamicism can be daemonizing reacting to interaction causing a cascading process of elimination. ======================================= Becareful. Dont run on an older chrome browser ======================================= <html> <head> <script> function main() { var vArr = new Array(); var bigArray = new Array(0x20000000); vArr[0] = String.prototype.toLowerCase.call(bigArray); vArr[1] = String.prototype.toLowerCase.call(bigArray); vArr[2] = String.prototype.toLowerCase.call(bigArray); } </script> </head> <body onload=main()></body> </html>$


Functions are just a bunch of codes with a name. But you can use them as many times as you want without rewriting. You just have to call them.


To make web sites come alive.


It is for Web interactivity if you want a short answer keep working!!


According what you are using it for. Me, I use it to manipulate web pages


It transform the static webpage to interactive webpage


🌜Functions are one of the fundamental building blocks in JavaScript. A function is a JavaScript procedure—a set of statements that performs a task or calculates a value. To use a function, you must define it somewhere in the scope from which you wish to call it.🌛


It makes the website (or game or whatever you are working on) interactive. It will do more things and be capable of a lot more than a static HTML web page.