Lingquan | Blog

Lingquan | Blog

Truth needs no colour. Beauty, no pencil.

Small but important stuff about Javascript
if (key in object) VS if (object.hasOwnProperty(key)) in will also return true if key gets found somewhere in the prototype chain, whereas Object.hasOwnProperty (like the name already tells us), will only return true if key is available on that object directly (its “owns” the property).!!(express...
Javascript Summary
forEach() VS map() VS (for..in) VS (for…of) Both they will call a provided function on each element in given array. However, the forEach() method doesn’t return anything (undefined), the map() method will return a new Array of the same size. forEach() can be used by map, set and array, map just...
HTML/CSS Summary
HTMLHTML SemanticSemantic HTML is HTML that introduces meaning to the web page rather than just presentation. For example, a tag indicates that the enclosed text is a paragraph. This is both semantic and presentational, because people know what paragraphs are and browsers know how to display the...
avatar
Lingquan Han
Keep Learning, Keep Running