Tue 2018.09.25
Thank you for clearing that up.
re: 'But in that case, foo and bar get lost.'
I had seen that technique in another module and just blindly copied it, but always wondered if in fact there is only one exports instance.
@Robin started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Tue 2018.09.25
Thank you for clearing that up.
I had seen that technique in another module and just blindly copied it, but always wondered if in fact there is only one exports instance.