You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/03-code-quality/06-polyfills/article.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Actually, there are two parts in Babel:
23
23
24
24
2. Second, the polyfill.
25
25
26
-
New language features may include new built-in functions and syntax constructs.
26
+
New language features may include not only syntax constructs, but also built-in functions.
27
27
The transpiler rewrites the code, transforming syntax constructs into older ones. But as for new built-in functions, we need to implement them. JavaScript is a highly dynamic language, scripts may add/modify any functions, so that they behave according to the modern standard.
28
28
29
29
A script that updates/adds new functions is called "polyfill". It "fills in" the gap and adds missing implementations.
0 commit comments