MCQs > IT & Programming > JavaScript > function locald() { var d = 6; console.log('d inside function: ' + d); } locald(); console.log('d outside function: ' + d); What will be value of d in or out of the function;

JavaScript MCQs

function locald() { var d = 6; console.log("d inside function: " + d); } locald(); console.log("d outside function: " + d); What will be value of d in or out of the function;

Answer

Correct Answer: 6 and not defined

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it