Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Author-time vs run-time in JavaScript

What is the difference between author-time and run-time in JavaScript? I am reading the YDKJS series and the author keeps mentioning author-time and it sounds like to me that author time is when the code is being written but I was hoping someone could clarify it a little more for me.

Context: this is not an author-time binding but a runtime binding. (From YDKJ this & Object Prototypes)

like image 457
JuniorSauce Avatar asked Feb 28 '16 19:02

JuniorSauce


1 Answers

Author-time means - it's decided when you write the code (and compile it)... This is basically target our lexical scope Run-time means it's decided during execution. This basically target to Dynamic scope .

like image 143
Abhishek SInha Avatar answered Sep 28 '22 06:09

Abhishek SInha