answersLogoWhite

0


Best Answer

document.getElementById('outputdiv').innerHTML = '22 + 32 + 42 + 52 = 54';

or perhaps:

alert('22 + 32 + 42 + 52 = 54');

You really couldn't do any calculations to display that, as the statement itself is false.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you display 22 plus 32 plus 42 plus 52 equals 54 in javascript?
Write your answer...
Submit
Still have questions?
magnify glass
imp