---
title: "Comment by 　 on \"ES6 way of coding Javascript!\" | Hashnode"
description: "function ES5Fun ( username, platform ) { username, = username, || &#x27;@wordssaysalot&#x27; ; platform = platform || &#x27;Hashnode&#x27; ; } Uncaught SyntaxEr"
url: "https://hashnode.com/posts/es6-way-of-coding-javascript/61c9873a1de80a7fb22800a7/comment/61ce94547cb96c3f9225ef86"
---

[Discussion](https://hashnode.com/posts/es6-way-of-coding-javascript/61c9873a1de80a7fb22800a7)

Comment [ES6 way of coding Javascript!](https://hashnode.com/posts/es6-way-of-coding-javascript/61c9873a1de80a7fb22800a7)

[Dec 31, 2021](https://hashnode.com/posts/es6-way-of-coding-javascript/61c9873a1de80a7fb22800a7/comment/61ce94547cb96c3f9225ef86)

```
function ES5Fun( username, platform){
    username, = username, || '@wordssaysalot';
    platform = platform || 'Hashnode';
}
```

`Uncaught SyntaxError: Unexpected token '='`
