How to define optional parameters to a function?

How to define optional parameters to a function?


functio myFunction(row = 1, data = []){ // ... function body }

Comments

Popular posts from this blog

spread operator use in reactjs

Break loop once condition match JavaScript