let specialty = '';
function isVegetarian() {
};
function isLowSodium() {
};
export { specialty, isVegetarian };
export { specialty, isVegetarian };
The explanation from the editor was as follows:
When exporting objects, it is done by their variable names using the keyword export. In this case, specialty and isVegetarian are exported, while isLowSodium is not exported because it is not specified.
I am curious why isLowSodium is not specified for export when it seems similar to isVegetarian. Could we potentially use export{specialty .isLowSodium}
? I haven't noticed any differences in action or behavior regarding the "specified" aspect mentioned.