What is the syntax of exports.sync?

exports.sync = function() {
    ...
}

as above: exports.sync syntax, js has this syntax?

Jul.26,2021

when does this become a new grammar? open your eyes


should be node environment just export a method named sync
node module (module)
ps:
even if it is not node environment this code is not unusual!

var obj = {};
obj.sync = function(){}

here is to export a method. The name of this method is sync

Menu