MCQs > IT & Programming > JavaScript > To define var1 = 'AAAAAAAAAAAAAAAAAAAA' //20 times A Which of the following could be used

JavaScript MCQs

To define var1 = 'AAAAAAAAAAAAAAAAAAAA'; //20 times A Which of the following could be used

Answer

Correct Answer: var var1 = Array(21).join("A");

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