Merge pull request #2555 from joaquinelio/patch-6

transpiler def
This commit is contained in:
Ilya Kantor 2021-06-18 19:48:03 +03:00 committed by GitHub
commit 492f506fbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ Here, in this chapter, our purpose is to get the gist of how they work, and thei
## Transpilers
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.
A [transpiler](https://en.wikipedia.org/wiki/Source-to-source_compiler) is a special piece of software that translates source code to another source code. It can parse ("read and understand") modern code and rewrite it using older syntax constructs, so the result would be the same in both, modern and outdated engines.
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`.