I am writing a Javascript function with an optional argument, and I want to assign the optional argument a default value. How can I assign it a default value?
I thought it would be this, but it doesn't work:
function(nodeBox,str = "hai")
{
// ...
}