1.Narwhal and the Adventures of CommonJSClinton R. Nixon2. CommonJSpromises to be a standard environment that will let JavaScript code use the same…