1
Refer to the code below: const pi = 3.1415926;
Double
Decimal
Float
Number
2
Refer to the code below: function execute() { return new Promise((resolve, reject) => reject()); } let promise = execute(); promise .then(() => console.log('Resolvedl')) .then(() => console.log('Resolved2')) .then(() => console.log('Resolved3')) .catch(() => console.log('Rejected')) .then(() => console.log('Resolved4')); What is the result when the Promise in the execute function is rejected?
Resolved1 Resolved2 Resolved3 Rejected Resolved4
Rejected Resolved4
Rejected
Resolved1 Resolved2 Resolved3 Resolved4
3
Given the code block below: function GameConsole(name) { this.name = name; } GameConsole.prototype.load = function(gamename) { console.log(`${this.name} is loading a game: ${gamename}...`; } function Console6bit (name) { GameConsole.call(this, name); } Console6bit.prototype = Object.create(GameConsole.prototype); // insert code here console.log(`${this.name} is loading a cartriadge game: ${gamename}...`) } const console6bit = new Console6bit('SNEGeneziz'); console6bit.load('Super Monic 3x Force'); wha
teste
teste
4
teste a a
teste
teste
5
teste a
a
a