diff --git a/es6.md b/es6.md index e5e6fecb3..a4f21f3ba 100644 --- a/es6.md +++ b/es6.md @@ -235,7 +235,7 @@ Destructuring of objects and arrays can be also be done in function arguments. ### Default values in destructured function arguments ```js -function greet({ name = "Rauno", greeting = "Hello" } = {}) { +function greet({ name = 'Rauno', greeting = 'Hello' } = {}) { console.log(`${greeting}, ${name}!`); } ```