Hao

JS Fundamentals Cheatsheet

Object.keys() v.s. Object.getOwnPropertyNames()

When talking about Object’s properties, there are two types, namely enumerable one and unenumerable one. It is called enumerability of properties 1. ‘enumerable properties are ones whose internal [[Enumerable]] flag is set true, which is default for properties created via simple assignment or via a property initializer’.

Object.keys() will return all enumerable properties of an object and getOwnPropertyNames will return both enumerable and nonenumerable properties.

What’s closure in JS
What’s event loop
When var t = 'abc', what would happen in compiler
Posted September 1, 2016
READ THIS NEXT:

Go Concurrency Pattern

Note from this video Basic What’s concurrency ? Concurrency is the composition of independently executing computations. Concurrency is a way to structure software, particularly as a way to write clean...


blog comments powered byDisqus