Passing parameter with signature value

Asked

Viewed 13 times

1

I’m doubtful, actually I don’t even remember how to speak/write this however, I need to pass a default value in the parameter, so it would be like this:

function umvalor(valor = null)

For if I pass a value it will assume this value, if not its default value will be null.

How to do this in javascript, if you have ne.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.