Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx52
// Function where students will fill out the logicfunction validNumericString(s) { // fill this in return;}// Test cases to validate the functionfunction runTests() { // Test case 1 const result1 = validNumericString("10.34"); if (result1 === true) { console.log("Test case 1 passed"); } else { console.log("Test case 1 failed"); } // Test case 2 const result2 = validNumericString("10.34e10"); if (result2 === true) { console.log("Test case 2 passed"); } else { console.log("Test case 2 failed"); } // Test case 3 const result3 = validNumericString("10.34.45"); if (result3 === false) {OUTPUT
Results will appear here.