Insofar as the coloring, look at what Pullo did & expand upon it. Hint: you can use more than 1 paragraph or 2 spans, or 2 divs...dependent upon whether this a homework assignment or a learning experience.

Vinny

mkjs
—
2013-12-22T08:13:11Z —
#7

Thanks, all, but I work at momoent in w3schools online and it does not work.I get prompts to imput noumbers, after that I just don't get any resutls.

Just one thing to consider is that the Netscape browsers that required the use of prompt() do not support innerHTML.

Those browsers that do support innerHTML provide far superior replacements for prompt() as well - which is why prompt() is never taught any more in proper programming classes (only in "history of JavaScript" classes).

P.s. Please, cansomeone tell me if it is ok to keep in this theme?I am klicking "reply to thsi thread".Is that ok?All the best!

felgall
—
2013-12-25T20:57:50Z —
#19

mkjs said:

document.writeln(a);document.writeln(c);

Those commands have been dead for over 10 years now - as a beginner you shouldn't even be seeing them referenced anywhere in the course or book you are learning from - unless you are learning history instead of programming in which case why are you worried about whether the code works or not in modern browsers as that code is for Netscape 4 and earlier.