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.

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. 10th, 2025 02:37 pm
Powered by Dreamwidth Studios