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

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -