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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3087d-4d3be.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3087d-4d3be.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?