Archive: 2017/8

Data Structure Study in JS (Set)

Keywords unordered, unique elements, cannot be repeated, array with no repeated elements, no concept/order Set in ECMA6https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects

Date in IE

It came across to me today that the new Date() worked differently in chrome and other browsers, namely IE and Safari. This is what happened:12345var date = new Date('2017-08-01 00:00');// in chrome =&

Data Structure Study in JS (Stack&Queue)

Keywords LIFO Stack class implementation12345678910111213141516171819202122232425262728293031323334353637383940414243444546function Stack(){ var items = []; // push - add item to the top of