GTU WTAD Practical 1 : Write a JavaScript that shows how a variables type can be changed on-the-fly.

GTU WTAD Practical 1 : Write a JavaScript that shows how a variables type can be changed on-the-fly.

WTAD Practical 1

This program demonstrate use of Javascript. Here I have change the datatype of the variable on the fly. When you want to re-utilize the the variable then you can use the same variable name and assign the value as you wish to store.

File Name : index.jsp

File Location : Tomcat_Apache\webapps\gtu01\

 

 Output

GTU WTAD Practical 1

 

What is JavaScript

JavaScript is popular Client Side scripting language basically used for many purpose including validation.

Hello World JavaScript using Document.Write() : This method is used to display some string on client browser.

 

Hello World JavaScript using alert() : This method is used to display message to user.

 

Hello World JavaScript using getElementById() : This method is generally used to paste more data into Division Tag or Paragraph.

 

How to Declare Variable in JavaScript
To declare Variable in Javascript var keyword is used. eg. var name=”Adarsh Patel”;

Is JavaSctipt Case Sensitive ?

Yes

 

Which operator is supported by JavaScript?

Almost all Operators which is available in C Like Language is supported by JavaScript.

 

How to Declare Button and Function in JavaScript ?

 

Display Variable Value along with How to Contact Two String:

.

Adarsh Patel

My Self Adarsh Suryakant Patel. Currently I am working as Assistant Professor at Parul Instiute of Engineering and Technology, MCA Department, Limda, Vadodara. Major Responsibility : * Lectures * Organizing Training and Expert Sessions for * Placement and Recruitment * Faculty Representative