a = b = c = d = "-";
let a, b, c, d; b = 5; [a, b, c, d] = [a, b, c, d].map(a => a === void 0 ? "-" : a); console.log(a, b, c, d)
let a=1 let b let c=3 a=a||'-' b=b||'-' c=c||'-' alert(a) alert(b) alert(c)