Jan. 5th, 2019

codeswitcher: A rainbow splash of paint exploding upward (Default)
[personal profile] codeswitcher
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

January 2019

S M T W T F S
  1234 5
6789101112
13141516171819
20212223242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 19th, 2019 02:29 am
Powered by Dreamwidth Studios