Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Oh, since the important thing is tie-breaker characters, p=prompt is not good. And, parseInt(x) is almost equivalent to ~~x. alert(Array(~~prompt())['concat'](Array(~~prompt()))['length']) (12 tie-breaker chars) PS. I could use this as my entry, but that just gives me feeling of stealing.
Using concat and put calculations in alert is shorter. i=parseInt;p=prompt;alert(Array(i(p())).concat(Array(i(p()))).length) BTW, I didn't know that Array(n) returns an array with length n. The Google Chrome console gave me [] and I thought there was nothing...