Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript 2 return values

function twoValues() {
  return [0, 1];
}

let [first, second] = twoValues();
 
PREVIOUS NEXT
Tagged: #javascript #return #values
ADD COMMENT
Topic
Name
7+8 =