// === Arrays | |
var [a, b] = [1, 2]; | |
console.log(a, b); | |
//=> 1 2 | |
// Use from functions, only select from pattern | |
var foo = () => [1, 2, 3]; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/* | |
Create a function that transforms any positive number to a string representing the number in words. The function should work for all numbers between 0 and 999999. | |
For example, | |
number2words(0) should return "zero" | |
number2words(1) should return "one" | |
number2words(9) should return "nine" |
Zbiór przeniesiony z gist do jednego repo w celu łatwiejszego zarządzania.
Zachęcam do przejrzenia pozostałych zbiorów z repozytorium, oraz do aktywnego dodawania własnych komend
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/