crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>JavaScript Functions</h2> <p>Do a calculation and then display the result.</p> <p id="demo"></p> <script> function myDisplayer(some) { document.getElementById("demo").innerHTML = some; } function myCalculator(num1, num2) { let sum = num1 + num2; return sum; } let result = myCalculator(5, 5); myDisplayer(result); </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDI+SmF2YVNjcmlwdCBGdW5jdGlvbnM8L2gyPg0KDQo8cD5EbyBhIGNhbGN1bGF0aW9uIGFuZCB0aGVuIGRpc3BsYXkgdGhlIHJlc3VsdC48L3A+DQoNCjxwIGlkPSJkZW1vIj48L3A+DQoNCjxzY3JpcHQ+DQpmdW5jdGlvbiBteURpc3BsYXllcihzb21lKSB7DQogIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJkZW1vIikuaW5uZXJIVE1MID0gc29tZTsNCn0NCg0KZnVuY3Rpb24gbXlDYWxjdWxhdG9yKG51bTEsIG51bTIpIHsNCiAgbGV0IHN1bSA9IG51bTEgKyBudW0yOw0KICByZXR1cm4gc3VtOw0KfQ0KDQpsZXQgcmVzdWx0ID0gbXlDYWxjdWxhdG9yKDUsIDUpOw0KbXlEaXNwbGF5ZXIocmVzdWx0KTsNCjwvc2NyaXB0Pg0KDQo8L2JvZHk+DQo8L2h0bWw+