algorithm - JavaScript: What does "functions are executable" mean? -
i'm reading john resig javascript ninja book. there writes functions have "super power" of being executable.
i don't understand "being executable" means.
does mean javascript interpreter takes code exists string , translates machine code? executed cpu? in case of that: other data processed cpu. differentiation?
can explain term "executable" in way understandable non computer-science graduate?
it means function set of instructions cpu can execute. compared other programing constructs variables , objects, hold data, kind of special..
specialy in languages javascript functions objects. "being executable" preatty special.
so imageine this. a
variable object, means holds data
= 10
the computer knows a
has value 10
, not know means, or it. function object on other hand holds instructions
function a(){do{...}while(b=10)}
this menas computer knows with. can take instructions of a
, execute them 1 one..
Comments
Post a Comment