JS Coding Questions Logo
JS Coding Questions
#11🎯 Exercise💻 Code

JavaScript Coding Exercise 11

Advertisement

728x90
javascript
1function printNumbers(first, second, first) {
2
3console.log(first, second, first);
4}
5
6printNumbers(1, 2, 3);

Choose the correct output:

A
1, 2, 3
B
3, 2, 3
C
SyntaxError: Duplicate parameter name not allowed in this context
D
1, 2, 1

Advertisement

Responsive Ad
11of86