+8

What is the function of javascript?

10/10/2019 3:21:35 AM

Souvik Sen

15 Answers

New Answer

+12

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

+10

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

+7

To add interactivity and dynamism to web pages amongst others.

+6

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.

+4

It is use in create website and web page.

+3

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. }

+3

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

+2

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>$

+2

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.

+2

To make web sites come alive.

+2

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

+1

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

+1

It transform the static webpage to interactive webpage

+1

🌜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.🌛

0

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.