Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

10 javascript interview questions


function sum() {
  var i, l, result = 0;
  for (i = 0, l = arguments.length; i < l; i++) {
    result += arguments[i];
  }
  return result;
}
sum(1,2,3); // 6

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #javascript #interview #questions
ADD COMMENT
Topic
Name
5+8 =