Refer to the following code:
Which statement should be added to line 09 for the code to display. The boat has a capacity of 10 people?
Refer to the codebelow:
function foo () {
const a =2;
function bat() {
console.log(a);
}
return bar;
}
Why does the function bar have access to variable a ?
A developer has the function, shown below, that is called when a page loads.
function onload() {
console.log(''Page has loaded!'');
}
Where can the developer see the log statement after loading the page in the browser?
Refer to the code below:
Click me! |