Skip to main content
edited body; edited title
Source Link
jonrsharpe
  • 121.5k
  • 8
  • 48
  • 63

Will the stack-snippets formatter support modern javascriptJavaScript syntax?

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

Before formatting:

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

After formatting:

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

Will the stack-snippets formatter support modern javascript syntax?

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)

Will the stack-snippets formatter support modern JavaScript syntax?

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)

Source Link
Konrad
  • 24.6k
  • 9
  • 9

Will the stack-snippets formatter support modern javascript syntax?

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)