Single number algorithm javaScript solution

Published --