One, Title Description
Seeking 1 + 2 + ... + n, requires multiplication and division can not be used, for, while, if, else, switch, case and keywords such as conditional statement (A B:? C).
Second, the example
Input: n = 3
Output: 6
Third, the problem-solving ideas
Because the specific calculation can not be used, I use && operator, && A B, where A qualified, enforcement B.
Fourth, the code
/**
* @param {number} n
* @return {number}
*/
var sumNums = function(n) {
var sum = n;
(n>0)&&(sum+=sumNums(n-1))
return sum
};