Task: Understanding JavaScript Array Concatenation
Task: Understanding JavaScript Array Concatenation: a task in Terminal-Lego-15k (Harbor dataset). This happens because JavaScript converts both arrays to strings before concatenation: - 1,2 becomes "1,2" - 3,4 becomes "3,4" - String concatenation: "1,2" + "3,4" = "1,23,4"
The task
This happens because JavaScript converts both arrays to strings before concatenation: - `[1,2]` becomes `"1,2"` - `[3,4]` becomes `"3,4"` - String concatenation: `"1,2" + "3,4"` = `"1,23,4"`
Part of PrimeIntellect/Terminal-Lego-15k.