codeswitcher: A rainbow splash of paint exploding upward (Default)
[personal profile] codeswitcher posting in [community profile] cs_hackerary
OMGOMGOMG, I just discovered javascript's Function.prototype.toString() method.

Example:

function foo (
  alert ( "Hello, World!" );
}

alert ( foo.toString ); 
... causes an alert pop-up to display with a text of function foo \n(\t alert ( "Hello, World!" );\n} (only with all those tabs and returns rendered correctly).

I think I am hyperventilating.

I am going to get in so much trouble with this.

Once I stop cackling maniacally and dancing around the house in ecstacy.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

cs_hackerary: (Default)
Codeswitcher's Hackerary

March 2022

S M T W T F S
  12345
6 789101112
13141516171819
20212223242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 12th, 2025 05:15 pm
Powered by Dreamwidth Studios