.- o
-- E
~
o
o -.
...
o
-.
_.
~
t
»
I ,'.'
1.11
~.
...
.•
......
-.
~ ~ ••
~
...
r , X
.....
., r..• :, ...
o
e:
Number.prototype.stupid = function() {
return (Math.floor(Math.random()*2) == 1);
};
var a = 4;
a;
a.stupid();
Number.p...
J<:>
-.
-"
:>.
~
cJ'
'WI'
~~~
• • • c
~ .....&
...
Function.prototype.stupid = function() {
retu rn (Math. floor (Math. rando'm() ;':2) =-~ 1);
}; I' iA ~ ~~
function ...
var a =1;
var optimus ; function() {
a=2;
return function() {
a = 3;
r·etu rn functi on () {
...
<
Sl'
-,
-n<
Sl'
o...
var add_junx = function(nodes) {
var 1·,
II]
fo,r (i == 0; i < nodes. 1ength; i += 1) {
...
.."
c:
..c
",
•
0 ",
:
tr ~
~. C f' -
...
,
c
-.
.,
.¢t'
Naked JavaScript
Naked JavaScript
Naked JavaScript
Naked JavaScript
Naked JavaScript
Naked JavaScript
Naked JavaScript
Naked JavaScript
Naked JavaScript
Naked JavaScript
Naked JavaScript
Naked JavaScript
of 32

Naked JavaScript

Published on: Mar 3, 2016
Published in: Technology      
Source: www.slideshare.net


Transcripts - Naked JavaScript

  • 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'

Related Documents