BBUGAugust2017, 12 August 2017
#HASHTAGUNSET on Twitter, identi.ca, Live Cast, TwitterStreamGraphs, Collecta, flickr
All by Stéphane Huart
myObject.__proto__/Object.getPrototypeOf(myObject) all the way up null to explore inheritance
var persoA = Object.create(knight) to showcase inheritance with shadowing
function Graph(){this.vertices = []; }; var g = new Graph() to show another way and explain this
class GraphAlt{constructor(){ this.vertices = []; } } ; var galt = new GraphAlt() as newer alternative
Object.assign() cf https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
Back to the Menu
Back to the Menu
Back to the Menu