JS: Value or reference ? Short answer: Passing primitive types (strings numbers booleans) are passed by object. Objects are passed by reference. var a; function foo(a) { } ``` The followup question would be: