Page 141 - CITS - CSA - TP (Volume 1) - Hindi
P. 141
कंप्यूटर सॉफ्टवेयर एप्लीकेशन- CITS
let b = 5;
// Addition
let sum = a + b;
console.log(“Sum:”, sum); // Output: 15
// Subtraction
let difference = a - b;
console.log(“Difference:”, difference); // Output: 5
// Multiplication
let product = a * b;
console.log(“Product:”, product); // Output: 50
// Division
let quotient = a / b;
console.log(“Quotient:”, quotient); // Output: 2
// Modulus
let remainder = a % b;
console.log(“Remainder:”, remainder);
// Output: 0 (10 divided by 5 leaves no remainder)
</script>
</body>
</html>
3 ो ाम को .html फ़ाइल के प म सेव कर
4 वेब ाउज़र से html फ़ाइल ओपन कर
5 ाउज़र कं सोल टैब पर जाएँ और आउटपुट की पुि कर ।
II क ेरसन ऑपरेटर
1 टे एिडटर ओपन कर
2 िन िल खत कोड िलख
<html >
<head>
<title> Comparison operators </title>
125
CITS : IT & ITES - कं ूटर सॉ वेयर ए ीके शन - अ ास 38

