Xah Web Dev Blog Archive 2017-03

TypeScript Tutorial (basics of using TypeScript to translate ES2015 to ES5)

Function Chaining (added ES2015 version)

Global Internet Usage Hour Pattern (code updated to JavaScript es2015 via TypeScript)

one major problem of JavaScript still is that there is no range function for array, even in ES2016. That means, you cannot avoid using for-loop.

SVG Clock (now js ES2015 code in TypeScript)

Range Function for Array 🚀 (new ES2015 function)

instanceof Operator (major rewrite)

Date Object (minor update)

Stopwatch (updated, added JS ES2015 code.)

Google Chrome has disabled the chrome://plugins settings page, starting with Google Chrome version 57 (released in 2017 March)

Object.prototype.valueOf (new page)

Array How-To (updated)

List Properties (new page)

Seo Hack on Alexa

Google Releases a Open Source Serif Chinese Font

http://developers.googleblog.com/2017/04/noto-serif-cjk-is-here.html

Understand JavaScript Iterable, Iterator, Generator Function and Generator

JavaScript ES2015 has new concepts of iterable, iterator, generator function and generator.

They are somewhat confusing and complex.

To understand them clearly, here's explanations, read in order.

Iterator Prototype

Number.prototype (now, the number object reference is complete.)

new pages

new pages on encoding url.

Number Object (new page)

Arrow Function (updated)

How to Convert ES5 to ES2015

survey. Web Design: Serif or Sans-Serif? (updated)

Function Parameters (updated for ES2015)

JavaScript trick. If you want to use forEach with break, use Array.prototype.every.

Spamer Email You Asking for Link Back

there's a new scam method. Real people email you, saying good things on your article, and ask you to link to their blog too.

although real person, but you can see the context is totally off. example: years old blog, or wrong community, non-specifics, etc.

The person is probably cheaply hired to look for web pages to email to ask for links.

If you do not reply, the person asks again in a couple of weeks. Repeat, up to 4 times.

See also: Web Spam, Scam, SEO

Boolean Object (complete rewrite)

Boolean.prototype (new page)

true, false (complete write)

Array.prototype.find new in ES2015.

Sparse Array (updated)