en.javascript.info
en.javascript.info copied to clipboard
Modern JavaScript Tutorial
This PR provides with better word choice(suitable for minors) in a task of chapter 5 - Data Types Fixes #3503
Original code: https://javascript.info/call-apply-decorators#throttle-decorator Here's a small code snippet to show where it doesn't work. ```js function f(a) { console.log(a) }; let g = throttle(f, 1000); for(let i = 0; i...
(The page in question) ### [Filter range "in place"] > Write a function filterRangeInPlace(arr, a, b) that gets an array arr and removes from it all values except those that...
[Here](https://javascript.info/modules-intro#no-bare-modules-allowed), it says no bare modules are allowed in browsers. However, if you use an [importmap](https://developer.mozilla.org/docs/Web/HTML/Element/script/type/importmap), you can use bare modules in browsers.
There is a wrong code in the Error Handling chapter. Refer to the image and code below: ``` try { user = { /*...*/ }; } catch (err) { if...
update the old url https://kangax.github.io/compat-table/es6/ to the new one: https://compat-table.github.io/compat-table/es6/
Fixed invalid url caused by redirection after the repository name was changed.
Edited the sentence saying the outer code had to await to saying the outer code had to .then() as the outer code is not inside an async function.