User Tools

Site Tools


jsfn:understanding_call-and-apply_invocation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

jsfn:understanding_call-and-apply_invocation [2016/01/27 23:41] – created leojsfn:understanding_call-and-apply_invocation [2016/01/31 20:53] (current) leo
Line 20: Line 20:
 } }
 var saySomething = {normal: "meow", love: "purr"} var saySomething = {normal: "meow", love: "purr"}
-speak.call(saySomething, saySomething.normal); // le deuxième argument va devenir le what plus haut ! // meow </code>+speak.call(saySomething, saySomething.normal); // le deuxième argument va devenir le what plus haut ! // meow
  
 var speak = function (what) { var speak = function (what) {
jsfn/understanding_call-and-apply_invocation.1453934474.txt.gz · Last modified: 2016/01/27 23:41 by leo