Skip to content

Commit f26d06b

Browse files
committed
Polyfill article tweaks
1 parent 206485f commit f26d06b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

1-js/03-code-quality/06-polyfills/article.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The JavaScript language steadily evolves. New proposals to the language appear r
55

66
Teams behind JavaScript engines have their own ideas about what to implement first. They may decide to implement proposals that are in draft and postpone things that are already in the spec, because they are less interesting or just harder to do.
77

8-
So it's quite common for an engine to implement only the part of the standard.
8+
So it's quite common for an engine to implement only part of the standard.
99

1010
A good page to see the current state of support for language features is <https://kangax.github.io/compat-table/es6/> (it's big, we have a lot to study yet).
1111

@@ -40,9 +40,9 @@ Now the rewritten code is suitable for older JavaScript engines.
4040
4141
Usually, a developer runs the transpiler on their own computer, and then deploys the transpiled code to the server.
4242
43-
Speaking of names, [Babel](https://babeljs.io) is one of the most prominent transpilers out there.
43+
Speaking of names, [Babel](https://babeljs.io) is one of the most prominent transpilers out there.
4444
45-
Modern project build systems, such as [webpack](https://webpack.js.org/), provide means to run transpiler automatically on every code change, so it's very easy to integrate into development process.
45+
Modern project build systems, such as [webpack](https://webpack.js.org/), provide a means to run a transpiler automatically on every code change, so it's very easy to integrate into the development process.
4646
4747
## Polyfills
4848
@@ -69,9 +69,9 @@ if (!Math.trunc) { // if no such function
6969
}
7070
```
7171
72-
JavaScript is a highly dynamic language, scripts may add/modify any functions, even including built-in ones.
72+
JavaScript is a highly dynamic language. Scripts may add/modify any function, even built-in ones.
7373
74-
Two interesting libraries of polyfills are:
74+
Two interesting polyfill libraries are:
7575
- [core js](https://github.com/zloirock/core-js) that supports a lot, allows to include only needed features.
7676
- [polyfill.io](http://polyfill.io) service that provides a script with polyfills, depending on the features and user's browser.
7777
@@ -80,9 +80,9 @@ Two interesting libraries of polyfills are:
8080
8181
In this chapter we'd like to motivate you to study modern and even "bleeding-edge" language features, even if they aren't yet well-supported by JavaScript engines.
8282
83-
Just don't forget to use transpiler (if using modern syntax or operators) and polyfills (to add functions that may be missing). And they'll ensure that the code works.
83+
Just don't forget to use a transpiler (if using modern syntax or operators) and polyfills (to add functions that may be missing). They'll ensure that the code works.
8484
85-
For example, later when you're familiar with JavaScript, you can setup a code build system based on [webpack](https://webpack.js.org/) with [babel-loader](https://github.com/babel/babel-loader) plugin.
85+
For example, later when you're familiar with JavaScript, you can setup a code build system based on [webpack](https://webpack.js.org/) with the [babel-loader](https://github.com/babel/babel-loader) plugin.
8686
8787
Good resources that show the current state of support for various features:
8888
- <https://kangax.github.io/compat-table/es6/> - for pure JavaScript.

0 commit comments

Comments
 (0)