fac-14 / teamcoolerweek-2

To-do-list project
1 stars 1 forks source link

IIFE #29

Closed morkeltry closed 6 years ago

morkeltry commented 6 years ago

OK, well done for using an anonymous IIFE in dom.js. Very clever - I wouldn't have understood that syntax in week 2... But.. It is a bit unnecessary, though! If dom.js is only going to be run as a <script> in the browser, then it will execute anyway - no need to wrap it in an IIFE.

sbinlondon commented 6 years ago

It was part of the skeleton - I can't say we really understand it! 😰 We'd love to have an explanation of it from whoever worked on the skeleton files. cc @iPhatty

iPhatty commented 6 years ago

Sure @sbinlondon ! I think I understand the use of the IIFE in the dom.js!