Doubt in emma's paint project | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Doubt in emma's paint project

i couldn't understand what is e in the handle move function and what is evt in handlestart function in the js section of code.i also couldn't get how exactly is the handlestart function working?can anyone please explain it.Thanks. https://code.sololearn.com/W6d0E0j5wCMB/?ref=app

31st Aug 2017, 4:44 PM
Navin Murarka
Navin Murarka - avatar
3 Answers
+ 10
not sure what you mean exactly by system defined keyword but in this case the first parameter that is passed to the event handler is an event object call it king_kamehameha_the_first if you want
31st Aug 2017, 5:39 PM
Burey
Burey - avatar
+ 9
evt and e are the same thing, and it's a better practice to keep the names consistent, unlike in here both are event object, and they allow to "convert" user interactions into logic (such as drawing a line) https://www.w3schools.com/js/js_events.asp
31st Aug 2017, 4:59 PM
Burey
Burey - avatar
+ 1
@Burey so that means evt and e are system defined keywords
31st Aug 2017, 5:17 PM
Navin Murarka
Navin Murarka - avatar