Summer Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmasmnth

function myFunction() { a = a + b; var b = 1;}myFunction();console.

function myFunction() {

a = a + b;

var b = 1;

}

myFunction();

console.log(a);

console.log(b);

Which statement is correct?

A.

Line 02 throws a reference error, therefore line 03 is never executed.

B.

Both line 02 and 03 are executed, but the values printed are undefined.

C.

Both line 02 and 03 are executed, and the variables are hoisted.

D.

Line 08 outputs the variable, but line 09 throws an error.

Salesforce JavaScript-Developer-I Summary

  • Vendor: Salesforce
  • Product: JavaScript-Developer-I
  • Update on: Jul 6, 2026
  • Questions: 147
Price: $52.5  $149.99
Buy Now JavaScript-Developer-I PDF + Testing Engine Pack

Payments We Accept

Your purchase with ExamsVCE is safe and fast. Your products will be available for immediate download after your payment has been received.
The ExamsVCE website is protected by 256-bit SSL from McAfee, the leader in online security.

examsvce payment method