From 901e5ef8a4936a8299a4b2837f7d3a33b937c95b Mon Sep 17 00:00:00 2001 From: mikemitchell574 <55799715+mikemitchell574@users.noreply.github.com> Date: Sat, 24 Oct 2020 22:10:06 -0400 Subject: [PATCH] Update topic sentence A simple fix to better frame the difference between a transpiler and a polyfill. --- 1-js/03-code-quality/06-polyfills/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/03-code-quality/06-polyfills/article.md b/1-js/03-code-quality/06-polyfills/article.md index 75db49d2..24091eb4 100644 --- a/1-js/03-code-quality/06-polyfills/article.md +++ b/1-js/03-code-quality/06-polyfills/article.md @@ -23,7 +23,7 @@ Actually, there are two parts in Babel: 2. Second, the polyfill. - New language features may include new built-in functions and syntax constructs. + New language features may include not only syntax constructs, but also built-in functions. 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. A script that updates/adds new functions is called "polyfill". It "fills in" the gap and adds missing implementations.