Anonymous user
User talk:La Longue Carabine: Difference between revisions
m
→Analyze and Discuss
m (→To Use Spidermonkey Examples in HTML Documents: Note about readline and files.) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1:
==
Whatever.
== To Use Spidermonkey Examples in HTML Documents ==
Line 24 ⟶ 23:
var printBuf = '';
function putstr() {
for (var i = 0; i < arguments.length; i++) {
printBuf += arguments[i] + pad;
▲ if (arguments.length > 1) printBuf += ' ';
}
}
function print() {
for (var i = 0; i < arguments.length; i++) {
putstr(arguments[i] + pad);
▲ if (arguments[i].length > 1) putstr(' ');
}
var d = document.createElement('div');
Line 41 ⟶ 40:
}
// Put my code here, but remove the hash-bang and call to main
// #!/usr/bin/env js
// ...
//main()
|