CodingJS

Solve programming problems in Javascript or TypeScript!

 ~  ~ JS Syntax Help

Warmup-1

--

sumDouble

Given two int values, return their sum. Unless the two values are the same, then return double their sum.

Examples

(ctrl-enter)

Popup content