How to write a for loop to look up and replace? – Javascript
I'm having trouble writing a function to iterate through a list, look up and replace if matched. This is what I have so far: function lookupTests(tests) { for (var i = 0; i < tests.length; i++) { const currentTest =…