logo

Crowdly

Browser

Add to Chrome

What is the correct fix for this function to return `2` ? function fixMe() { ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the correct fix for this function to return `2`?

function fixMe() {

const a = 1;

const b = 1;

let result;

result = "a" + "b"; // Fix this line

return result;

}

0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.ncst.edu.bh?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome