const x: boolean | undefined | null = getValue(); const not_x: boolean = !!!y
I added TS type annotation for clarity, although could be inferred if `getValue` is typed accordingly.
return <p> A JSX paragraph </p>
In TypeScript, at least, you get yelled at for this.