This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)
Given the code
| <project name>/ | |
| application/ | |
| configs/ | |
| application.ini | |
| controllers/ | |
| helpers/ | |
| forms/ | |
| layouts/ | |
| filters/ | |
| helpers/ |
| <?php | |
| //STRING IN DIFFERENT WAYS | |
| //---------------------------------------------- | |
| echo 'Iam David Heart'; | |
| echo 'embedded newlines | |
| embedded newlines | |
| embedded newlines'; |