/**
* @param {number[]} nums
* @param {number} target
* @return {number[]}
*/
function twoSum(nums, target) {
// TODO: return indices of two numbers that add up to target
return [];
}
const nums = [2, 7, 11, 15];
const target = 9;
console.log(twoSum(nums, target)); // expect [0, 1]
Click Run to execute, or Submit to grade (all languages).