noelportugal / google-home-notifier

Send notifications to Google Home
MIT License
579 stars 171 forks source link

Default parameter in function doesn't work. #21

Open arturmaj opened 7 years ago

arturmaj commented 7 years ago

On Ubuntu 17.04 , node ver.4..7.2 when I run example.js I am getting: /home/artur/google-home-notifier/google-home-notifier.js:8 var device = function(name, lang = 'en') {

                             ^
Bhacaz commented 6 years ago

Default parameter comes with node v6. You or currently with v4.