+ 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 Respuesta
- 1
Y
6th Apr 2017, 5:54 PM
Vitaly Podgornov
Vitaly  Podgornov - avatar