Simple Arithmetic Calculator | HTML, CSS and JavaScript

preview_player
Показать описание
Hypertext Markup Language is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets and scripting languages such as JavaScript.

Cascading Style Sheets is a style sheet language used for describing the presentation of a document written in a markup language like HTML. CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript.

JavaScript, often abbreviated as JS, is a programming language that conforms to the ECMAScript specification. JavaScript is high-level, often just-in-time compiled, and multi-paradigm. It has curly-bracket syntax, dynamic typing, prototype-based object-orientation, and first-class functions.
Рекомендации по теме
Комментарии
Автор

Whenever I click Add or any other operations my page reloads and I can't see the result??

puskarniraula
Автор

Can you please paste the source code here

mayanksharma
Автор

Correct code👇

<!DOCTYPE html>
<html>
<head>
<title>Simple Arithmetic Calculator</title>
</head>
<body>
<div>
<h2>Simple Arithmetic Calculator</h2>
<input type="number" placeholder="Number 1" id="num1"/>
<br>
<input type="number" placeholder="Number 2" id="num2"/>
<br>
<button
<input type="number" id="result" readonly/>
</div>
<script>
function addNumbers() {
var n1 =
var n2 =
= n1 + n2;
}
</script>
</body>
</html>

spweb_dev
Автор

How to do validation for this can you please help,

BadboyGaming
Автор

can someone send me the src so i don't need to do it

alkaabi
visit shbcf.ru