I'm curious to know that what does a ?? mean in JS?
form.inputs.forEach(input => {
stepProperties[input.field] = {
info: input.fieldInfo,
description: input.fieldLabel,
default: input.fieldDefault ?? '',
...getInputType(input.fieldType, fieldTypes),
};
itemToPush.properties = stepProperties;
});
in the above code snippet the value of default key is input.fieldDefault ?? ''
would like to understand this line.
I did google but did not get any proper answer.