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
Post a Comment