User talk:La Longue Carabine: Difference between revisions

m
m (→‎To Use Spidermonkey Examples in HTML Documents: Note about readline and files.)
 
(2 intermediate revisions by the same user not shown)
Line 1:
==AnalyzeComments and DiscussDiscussion==
Whatever.
 
 
== To Use Spidermonkey Examples in HTML Documents ==
Line 24 ⟶ 23:
var printBuf = '';
function putstr() {
var pad = if (arguments.length > 1) printBuf? +=' ' : ';'
for (var i = 0; i < arguments.length; i++) {
printBuf += arguments[i] + pad;
if (arguments.length > 1) printBuf += ' ';
}
}
 
function print() {
var pad = if (arguments[i].length > 1) putstr(? ' '); : ''
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
// that is usually the last line of the script.
 
// ...
 
//main()