Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Naked JavaScript

1,209 views

Published on

Published in: Technology
  • Be the first to comment

Naked JavaScript

  1. 1. .- o -- E ~ o o -. V' ~ .­ r • •• -. ~ ., '" ,... s: - •
  2. 2. o -. _.
  3. 3. ~ t » I ,'.' 1.11 ~. ~ r,. g -- • I t. • c... 0 l 0 ..: ~ ~ ~ IQ ITt :c: ~ ~ ",. i.: ~. "'~ ,,'"
  4. 4. .• ......
  5. 5. -.
  6. 6. ~ ~ •• ~ '!t- ... -fa ,. , -­ ~ <J::) " ... - • • ..... £ '.a. 6, ,... •• •• "II ~ :) .... • ~ ~ c.M ..... • .. • ~ . .. ., '-" ~ ~ WIt r­ -. • .... .. . c: ~ r , ~ ~ ~ c -. c , ~ ~ ~ - r - v' - • ~. " +­
  7. 7. r , X ..... ., r..• :, -. I ...' .... " CD -- (t) > ,. '" It , '!. " .',., " ".. " " C1 I, • .JI • ",.. - ., - -. 0, • vt ~ 4 t' -+ ... .,, ~ s:: C; t C r- r IO --- -a ~ '" ~ tA·~ -- S. ., ~ ~ jf/II .,.. ;C -- CV - ;(. --- v- -- p " ~ " ~ ~ ~ II " ~ ", ~ " r ~ ' , f' , ."" ..-... .... -- s:: a .... '--' ... :. C' ,. ,. ~ 'I ~ ~ .... . ~ i ~ t' ~ ~
  8. 8. o e:
  9. 9. Number.prototype.stupid = function() { return (Math.floor(Math.random()*2) == 1); }; var a = 4; a; a.stupid(); Number.prototype.stupid = function() { print ("I am not"); } ; a; a.stupid(); :s WOI J~ 10r EUf,~~-rJ,fi,u~ b'-~
  10. 10. J<:> -. -" :>. ~ cJ'
  11. 11. 'WI' ~~~ • • • c ~ .....& ,. -~ , - t } QI ..... c ,.. c ~ ~ r­ ,.. ..,. • ., . ~ ;; r rJ ". ,. r J ., " ,.. .~ ) i' 4 .... -. --. •• . " " .~ .~ ~ ~ ...... I ~ c. •• ~ ~ ~ .... ~ ..,. Co ~1 -. -- ) -. • " ", -- •• -. , ~ ,.::" . IN' .. S­ I , r ~ - "
  12. 12. Function.prototype.stupid = function() { retu rn (Math. floor (Math. rando'm() ;':2) =-~ 1); }; I' iA ~ ~~ function a() { print("hi") } a() ; Bo",,~ ~'" • a.stupid(); ---." Funct;on.prototype.stupid = function() { pri nt (~'I am not"); } ; a(); a.stupid(); Wa~.f Wh •
  13. 13. var a =1; var optimus ; function() { a=2; return function() { a = 3; r·etu rn functi on () { a = 6.; return function() { a == "prime"; } } } } ptj optilmus() opti mus () () optimus() () () opti mus () () () ()
  14. 14. < Sl' -, -n< Sl' o QJ -'-'0.. ~ 0.. o r". --'. I 0.. -I. _. ~. Sl' ro c -J (/) II ::J ro..., X ., -I. 0 ~""a' L......J.... t -I. -n, c A ::J -I.::J n rt n 0 -I. 7'0.. 0 ro ::J III(/) r". • ::J -n-J 0 C (1) 0.. ~::J ro n lC (/) rtM ~ -I. ::J"" o .... r-I'- ::J 1"*"' -I • (D ~+ II
  15. 15. var add_junx = function(nodes) { var 1·, II] fo,r (i == 0; i < nodes. 1ength; i += 1) { nodes[i].onclick = function(j) { return function(e) { alert(j); I'~l So } (i) ; ~( } ',tll .,,~, ,A. ." } ~ e..J u · ~ ' (.(" . -t ~ "...f" c.;~ } tr " ~ ~.~ .~l(. .aA.~.1 t~t.. . . t;"" • ~. ~~... e.- ~~ 1'" tI ·
  16. 16. .." c: ..c ", •
  17. 17. 0 ", : tr ~ ~. C f' - ttl «' ,. .., ~ , ~ 3 , , •• ~ .,. c 1& , -. •• ,-­ , "" ca.. ~ V' v 0 " , 0 0 # ~ ~ ••~ ~. ~ ~ l I ~ S c ~ Q-' i ~ , i ,. L. .... ...,., ~ • ,., -- ..... " " {' c • ,.. --- • l ~ ~ ~ ~ " Q.. .­ ~ C, r ~ ,.. -- , " ~ ~ -. J~
  18. 18. ,
  19. 19. c
  20. 20. -. ., .¢t'

×