Skip to content

Commit 901e5ef

Browse files
Update topic sentence
A simple fix to better frame the difference between a transpiler and a polyfill.
1 parent 2d5be7b commit 901e5ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Actually, there are two parts in Babel:
2323

2424
2. Second, the polyfill.
2525

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.
2727
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.
2828

2929
A script that updates/adds new functions is called "polyfill". It "fills in" the gap and adds missing implementations.

0 commit comments

Comments
 (0)