What is the function of javascript?

10/10/2019 3:21:35 AM

Souvik Sen

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


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


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


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


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


It transform the static webpage to interactive webpage


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.