UseCase of JavaScript in industry

Amit Pandey
3 min readJun 25, 2021

Here i am going to discuss various use cases of JavaScript in various sectors

History :

JavaScript was originally developed by Brendan Eich at Netscape sometime in 1995 , then thisscript language was called Live Script. Later on the script language was renamed to JavaScript.

Use-Cases : — — — — — — — — -

JavaScript can be used for various different places but the most common place to use it is in a web page. JavaScript is used for creating web page development . These JavaScript functions are embedded in website. JavaScript is used for making Web Pages. JavaScript is used for play online movies, make popup boxes, Dynamic website, web page etc.

JavaScript programs are used to detect and react to user-initiated events, such as a mouse going over a link or graphic. Java Script can improve a Web site with navigational aids. JavaScript lets you control the appearance of the web page as the document is being parsed. Without any network transmission, With Java Script you validate what the user has entered into a form before submitting the form to the server. it has string functions and supports regular expressions to check for valid e-mail addresses, social security numbers, credit card data. JavaScript also reads and writes cookie values.

JavaScript Used for Effects

It is very easy to create interesting image effects with JavaScript. JavaScript Effects such as image rollovers are common on many web sites.

JavaScript Used for Games

You can create many interesting games with JavaScript. There are basically two types of games:

* Static games

* Dynamic games

JavaScript is Used For Form Validation

Form validation is one of the most common applications of JavaScript, A classic form-related script is one that validates a form’s fields before it is submitted and cancels the submission to the server if an error is found in one of the script field. The advantage of using JavaScript in this particular example is that client-side script validation is much faster than validation via transmission to the server and back to the client.

For example, suppose you have a form-related script that accepts data from the user, including his or her e-mail address. Let’s assume that the e-mail address is essential, and that a string containing an “@” character is assumed to be a valid e-mail address.

You can choose to use client-side script validation via JavaScript. In that case the validating script is loaded as plain text (JavaScript code embedded in the HTML code). When the user clicks the Submit button, a JavaScript function is triggered to validate the form. If the e-mail address seems valid, the form is submitted to the server; otherwise, an appropriate message is immediately displayed by JavaScript and the submission is canceled.

What is JavaScript and how is it different from Java Technology?

JavaScript is not Java. Java was developed at Sun Microsystems. JavaScript was developed at Netscape. Java applications are independent of a Web page whereas JavaScript programs are embedded in a Web page and must be run in a web browser window.

Java data types must be declared. JavaScript types such as variables, parameters, and function return types do not have to be declared. Java programs are compiled. JavaScript script are interpreted by a JavaScript engine that lives in the web browser . JavaScript has its own syntax script rules and expects statements to be written in a certain way.

What is JavaScript Frameworks

Many Type of JavaScript frameworks available in the world. JavaScript Framework is a pre-written Script library of JavaScript functions and methods.Which makes the developer to produce cross web browser compliant code quickly and accurately. Most popular Java Script frameworks are: YUI, ExtJS, Prototype, MooTools and the latest one, jQuery.

Above article are the Use-Case description of JavaScript.

ThankYou!

--

--