News for hackers. Stuff that matters.
Re:Ask HN: What would you change about JavaScript if you could? by self_refactor on Wednesday September 13, 2017 @07:07AM (#15237138)
Remove the need of parentheses on if else statements

if foo === 'FOO' && bar > 7 {

  console.log(bar)

  return true
}else if typeof foo === 'string'{

  return false
}

return null

There are no comments on this comment yet.