Your SlideShare is downloading. ×
Naked JavaScript
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Naked JavaScript

891
views

Published on

Published in: Technology

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
891
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. .- o -- E ~ o o -. V' ~ .­ r • •• -. ~ ., '" ,... s: - •
  • 2. o -. _.
  • 3. ~ t » I ,'.' 1.11 ~. ~ r,. g -- • I t. • c... 0 l 0 ..: ~ ~ ~ IQ ITt :c: ~ ~ ",. i.: ~. "'~ ,,'"
  • 4. .• ......
  • 5. -.
  • 6. ~ ~ •• ~ '!t- ... -fa ,. , -­ ~ <J::) " ... - • • ..... £ '.a. 6, ,... •• •• "II ~ :) .... • ~ ~ c.M ..... • .. • ~ . .. ., '-" ~ ~ WIt r­ -. • .... .. . c: ~ r , ~ ~ ~ c -. c , ~ ~ ~ - r - v' - • ~. " +­
  • 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. o e:
  • 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. J<:> -. -" :>. ~ cJ'
  • 11. 'WI' ~~~ • • • c ~ .....& ,. -~ , - t } QI ..... c ,.. c ~ ~ r­ ,.. ..,. • ., . ~ ;; r rJ ". ,. r J ., " ,.. .~ ) i' 4 .... -. --. •• . " " .~ .~ ~ ~ ...... I ~ c. •• ~ ~ ~ .... ~ ..,. Co ~1 -. -- ) -. • " ", -- •• -. , ~ ,.::" . IN' .. S­ I , r ~ - "
  • 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. 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. < 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. 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. .." c: ..c ", •
  • 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. ,
  • 19. c
  • 20. -. ., .¢t'