πŸ“Š JavaScript
Q. What will be the output of the following JavaScript code?
Code:
function fun_range(int l)
{
int p=2;
for(int x=0;x {
console.log(p);
}
}
range(4);
  • (A) 2
  • (B) 4
  • (C) 2222
  • (D) error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 2222

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
207
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
84%
Success Rate