Skip to content

Commit 68dfa95

Browse files
committed
minor fixes
1 parent f30b4f2 commit 68dfa95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Here, in this chapter, our purpose is to get the gist of how they work, and thei
2424

2525
A [transpiler](https://en.wikipedia.org/wiki/Source-to-source_compiler) is a special piece of software that can parse ("read and understand") modern code, and rewrite it using older syntax constructs, so that the result would be the same.
2626

27-
E.g. JavaScript before year 2020 didn't have the "nullish coalescing operator" `??`. So, if the visitor uses an outdated browser, it may fail to understand the code like `height = height ?? 100`.
27+
E.g. JavaScript before year 2020 didn't have the "nullish coalescing operator" `??`. So, if a visitor uses an outdated browser, it may fail to understand the code like `height = height ?? 100`.
2828

29-
A transpiler would analyze our code and rewrite `height ?? 100` as `(height !== undefined && height !== null) ? height : 100`.
29+
A transpiler would analyze our code and rewrite `height ?? 100` into `(height !== undefined && height !== null) ? height : 100`.
3030

3131
```js
3232
// before running the transpiler

0 commit comments

Comments
 (0)