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.
xxxxxxxxxx40
var assert = require('assert');function sortedTwoSum(nums, goal) { return nums;}let arr = [1, 3, 7, 8, 11];let goal = 10;console.log(sortedTwoSum(arr, goal));try { assert.deepEqual(sortedTwoSum([3, 6, 13, 14], 16), [0, 2]); console.log( 'PASSED: <code>sortedTwoSum([3, 6, 13, 14], 16)</code> should return <code>[0, 2]</code>' );} catch (err) { console.log(err);}try { assert.deepEqual(sortedTwoSum([1, 9, 13, 20, 47], 67), [3, 4]); console.log( 'PASSED: <code>sortedTwoSum([1, 9, 13, 20, 47], 67)</code> should return <code>[3, 4]</code>' );} catch (err) {OUTPUT
Results will appear here.