How javascript works ? 1-engine 2-lexical analysis 1- scanning -> parser -> tokens or chunks (tokenization) تكسير الكود لأجزاء مصغرة 2- parser -> ignore comments and spaces 3- error handling 4- token stream 3-AST -> Abstract syntax tree 4-AST traversal 5-execution 6-result ->users