4

Clicking "Tidy" breaks JavaScript code if it contains ?.

Before formatting:

const a = { b: 3 }
console.log(a?.b)

After formatting:

const a = {
  b: 3
}
console.log(a ? .b)

1

0

Browse other questions tagged .