0
const a = 'aaaa'
const b = 'bbbb'

[a, b].forEach(s => console.log(s))

this throws cannot access to 'b' before initialization

I will appreciate help from community

I was expecting console log like 'aaaa' and 'bbbb'

VLAZ
  • 26,331
  • 9
  • 49
  • 67
akira
  • 1
  • 1

0 Answers0