Skip to content

Instantly share code, notes, and snippets.

View HarplingeTom's full-sized avatar

Tom Skinner HarplingeTom

  • Halmstad, Sweden
View GitHub Profile
@HarplingeTom
HarplingeTom / const-and-reference-values.markdown
Created December 15, 2018 03:58
const and reference values
@HarplingeTom
HarplingeTom / apples.js
Created December 14, 2018 04:49
pass by value
var a = [2];
var b = 3;
var c = new Number(4);
console.log(a instanceof Object, b instanceof Object, c instanceof Object);
function monkey(h, i, j) {
console.log(typeof h, typeof i, typeof j);
return [++h[0], ++i, ++j];
}