Engine262 - How to 'RUN' the ecmascript specification? | Javascript engine

preview_player
Показать описание
If you have tried reading the Ecmascript specification (javascript), a common problem is that you can't really run or debug parts of the specification to see how it works. So, you can run the code in a simple js engine like Engine262.

Using engine262, we will debug why `[ ] == ![ ]` evaluates to true.

00:00 Intro
01:11 Why is reading spec hard?
02:44 How to run specification?
02:57 Engine262 Intro
04:28 Setting up engine262
09:53 Run code within engine262
11:44 Parsing and evaluation step
14:05 How to find releveant sections in code and AST?
19:36 Evalate `![ ]`
21:12 [] == ! ToBoolean(true)
22:50 Evaluate `==`
23:40 From `[] == false` to `[] == 0`
25:51 From `[] == 0` to `"" == 0`
30:51 From `"" == 0` to `0 == 0`
32:34 which returns true
34:09 Outro

Links -
Рекомендации по теме
Комментарии
Автор

Wow thanks for the contribution. Liked it. Will like it for sure on LinkedIn too. Alot of developers in India will benefit from this.

chiragr
Автор

You never disappoint me. Please go on. Good luck 😊😊😊

kushalthapa
Автор

Great Video as always, will u create a video on Promises in depth. i want to know promises in depth but i am not getting good resource. if possible create a whole javascript concept video. keep continue.

sundaramjha
welcome to shbcf.ru