Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
function nextInLine(arr, item) {
// Only change code below this line
return item;
// Only change code above this line
}
// Setup
const testArr = [1, 2, 3, 4, 5];
// Display code
console.log("Before: " + JSON.stringify(testArr));
console.log(nextInLine(testArr, 6));
console.log("After: " + JSON.stringify(testArr));
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Stand in Line
Link to the challenge:
Hello there.
Do you have a question?
If so, please edit your post to include it in the Tell us what’s happening section.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more information you give us, the more likely we are to be able to help.
I’m not able to write a function nextInLine which takes an array and anumber iten as an argument
Did you try something? From your code I don’t see any changes.
Or you don’t understand instructions?
Try to tell what specific part of the instructions is confusing?
Now I don’t know:
maybe you don’t know how to write function
maybe you don’t know what arguments are
or maybe issue is something different?
Please try to specify.
I have not yet tried coz I didn’t understand the instructions
Well, that’s why I asked the above question.
system
Closed
January 26, 2023, 11:30pm
8
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.