Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default parameter in function doesn't work. #21

Open
arturmaj opened this issue Nov 4, 2017 · 1 comment
Open

Default parameter in function doesn't work. #21

arturmaj opened this issue Nov 4, 2017 · 1 comment

Comments

@arturmaj
Copy link

arturmaj commented Nov 4, 2017

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
Copy link
Contributor

Bhacaz commented Jan 22, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants