JavaScript Text Programmer
Here is the output box:
I'm the BOX!
Usage: All these commands have to be typed into the web console of your browser. How to open the Web Console?
- To write text in the output box type: boxwrite(new text);
Example: boxwrite("Hello World!");
- To clear the text in the box, type: boxclear();
- To add new text to this page, type: pagewrite(text);
Example: pageadd("New page text Here");
- You can also clear the page using pageclear(); Warning: This will erase all the text in the page, you will have to reload the page to see it.
Code Examples:
alert("Hey There!");
boxwrite("Pi = " + 3.1415);
document.bgColor="blue";
document.body.style.color="white";
x=prompt("What is your Name?");
boxwrite("Hi "+x);
x=0;
while( x<10 ) { boxwrite(x); x=x+1; }
boxwrite(Date());
x=prompt("Give me a Number:");
x=parseInt(x);
y = 10 * x;
boxwrite("10 x your number = " + y);