Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

javascript Q:

Name: Anonymous 2011-10-21 20:08

is there anyway to do like

var breakln = 'document.writeln("<br />")';

breakln;

and have it actually insert a new line?

also google was of no help for this question and not much help for the next

how the fuck do i pass by reference?

Name: Anonymous 2011-10-24 3:40

functions are first class, dummy. You can assign them to variables and/or pass them as arguments. But if you must do it your way:

eval('(' + (function() {
    // your retarded code goes in here
    document.write('line 1');
    breakln;
    document.write('line 2');
}).toString().replace('breakln', "document.write('\\n')") + ')()');

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List