Correct synthax? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Correct synthax?

Why can I write: function write( mode = "a+" ) { ...blablabla but not: var outputFile = new ( function () { var self = this; self.create = function ( mode = "a+" ) <---Script refuse the param with default value {

6th Apr 2017, 2:25 PM
Geoffrey L
Geoffrey L - avatar
1 Answer
- 1
Y
6th Apr 2017, 5:54 PM
Vitaly Podgornov
Vitaly  Podgornov - avatar