Part-5 Prac 1:Create JavaScript function for basic arithmetic operations (Addition, Subtraction, Multiplication and Division). Create proper design layout which asks two numbers to enter from user and display result of respective operation on clicking respective button.


Tags Used in this practical:

(1)Form :It is used to create HTML form for user input.
(2)Input :The <input> tag specifies an input field  where the user can enter its data.
<input> elements are used within <form> elements to declare input controls that allow the users to input data.

Functions used in this practical:

eval(): The eval() function evaluates or executes the arguments.
If the arguments is an expression , eval() evaluates the expression .If the argument is one or more JavaScript statements, eval() executes the statements.


Name: Naisarg Modi
ID: 18CE055

Comments

Popular posts from this blog

Part-7 Prac 2: Study and demonstrate php syntax, data type, variable, function, array, superglobal variable and form (Self-learning exercise using this link: https://www.w3schools.com/php/).

Part-6 Prac 5 :Create Hello World program using Node.js.