πŸ“Š JavaScript
Q. Which one of the following is the possibly correct output for the given JavaScript code?
Code:
functionfun(int length)  
{  
    int a=5;  
    for(inti=0;i<length;i++)  
    {  
        console.log(a);  
    }  
}  
fun(2); 
  • (A) 5
  • (B) 555
  • (C) 55
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 55

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
298
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Indresh Gehalot
Publisher
πŸ“ˆ
95%
Success Rate