HF RL Explorer

Task: Replace All Spaces with Underscores in JavaScript

Task: Replace All Spaces with Underscores in JavaScript: a task in Terminal-Lego-15k (Harbor dataset). Write a JavaScript function that replaces all spaces in a string with underscores ( ). The common mistake is using String.replace() with a plain string argument, which only replaces the first…

Part of PrimeIntellect/Terminal-Lego-15k.