Hrm am i going nuts?.

 
Plants: And fill with the string

Koh: B Array5.fill’n’.join”

Voto: I never even heard of the fill function.

Mate: Kalkman: Array.prototype.fill – JavaScript MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill

Mate: Kalkman: String.prototype.repeat – JavaScript MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat

Reffett: But I think its in the shim

Gobbo: Which makes it easy to use

Mate: Graphettion: To get every backwards-compatible feature of ES6 in every browser and node, use https://www.npmjs.com/package/es6-shim ! It’s heavily tested, comes with Promises, and using the !es5-shim as well is strongly encouraged.

Schraeder: Oh damn didin’t know about repeat lol

Harner: How do you do repeat?

Eady: Torkable: okay foobarfoobarfoobar

Leipold: Thanks. I know these are n00b questions. I just need more practice with strings. Returning arrays like .map .filter

Danni: Anyways, let’s say cl***A is parent of cl***B and cl***B is parent of cl***C. Does it mean that when a property changes in cl***A, cl***C will automatically have the new value? or do we have to execute a code to grab it?

Kalkman: JS doesn’t have cl***es, so without having specific code it’s hard to know what you mean by that

Hurlock: Is it somehow possible to “echo” a file from an ajax request?

Reischl: Repasting the fiddle, one sec

Bruhn: Http://jsfiddle.net/dqggvjrj/2/

Kalkman: Zumba_addict: if foo.prototype = bar, then whenever we look up a property on foo, if it doesn’t exist, it will search bar

Kalkman: So foo = {a: ‘a’}; bar = {b: ‘b’}; when we look at foo.a, it searches foo for a first, and finds it, so it stops there

Kalkman: But foo.b, it wouldn’t find it, and search bar

Komsthoeft: I have a data attribute I want to store the name of a function reference. It looks something like data-callback=”namespace.modules.test.newCallback” What’s the cleanest way to go about this?

Romer: Was thinking of using split. and doing windowsplit0split1split2split3 in conjunction with a loop maybe to support any number of children.

Towse: Is bar a child of foo?

Kalkman: Zumba_addict: in my example, foo.prototype = bar

Rougeaux: Kalkman: would love to see a short fiddle on that. That would help me a lot

Connette: Gentleman: I got confused on this article – http://raganwald.com/2014/03/31/cl***-hierarchies-dont-do-that.html

Seley: Zumba_addict, watch this video:

Taintor: Today was my first time hearing cl*** heirarchies. Is the fiddle i posted a cl*** heirarch?

Huffstutter: Https://www.youtube.com/watch?v=PMfcsYzj-9M

Thein: Pikul: is the fiddle I posted a cl*** heirarchy? http://jsfiddle.net/dqggvjrj/2/

Sinatra: Someone just gave that to me last night

Kalkman: Zumba_addict: http://jsfiddle.net/152tt9ne/1/

Rost: Thanks so much cjohnson

Bramer: Wow, so glad when I see new function names 😀

Channell: It makes me feel I’m advance

Kalkman: I used Object.setPrototypeOf here which is es6 but you can think of that as instance1.prototype = foo; in es5

Mohney: Is it also similar to this? var instance1 = new foo;

Kalkman: New foo is different, that calls the function foo in my case, foo isn’t a function, just an object and it returns a new object from the function foo

Kalkman: Zumba_addict: http://jsfiddle.net/xbLf3y8s/

Kalkman: This over-simplifies all the magic that “new” does

Kalkman: But that’s the gist of it

Kalkman: Er, http://jsfiddle.net/xbLf3y8s/1/

Jendro: Hrm am i going nuts? do***ent.querySelector’inputtype=”submit”‘.cl***Name = ‘biscuits’ // doesn’t show up in inspect element? the cl***names don’t actually change