<html>
<head>
<title> JS </title>
</head>
<body>
<form name="example">
<input type="text" size="20" name="calculator">
<input type="button" name="B1" value="calculate" onclick="cal()">
<input type="reset" name="B2" value="reset">
Answer: <input type="text" size="20" name="answer">
</form>
</body>
<script>
function cal()
{
document.example.answer.value= eval(document.example.calculator.value)
}
</script>
</html>
Saturday, June 18, 2022
CALCULATOR IN JAVASCRIPT
Subscribe to:
Post Comments (Atom)
MCQ QUESTIONS
Loading…
-
Q-1. In CIN C stands for ......? a.Customer b.Corporate c.Consumer d. Calculation Q2-How many Default Accounting Group in Tally Prime...
-
ECC- Expert computer course it is enhanced version of CCC. and in this course duration is increases, it is best course for student who w...
-
Now a days in computer languages java is very famous . it is developed by James Gosling in Sun MicroSystem in 1991. initially it was deve...
No comments:
Post a Comment