DEV Community

Discussion on: Use more ternary operators!

Collapse
 
mzaini30 profile image
Zen

Use Javascript for syntax highlighting in your post. Like this:

let num = 10;

console.log(num > 10 ? 'Greater than 10': 'Less than 10');

Collapse
 
asasced profile image
Jesús Jiménez

Thank you so much, I didn't know that :)

Collapse
 
mzaini30 profile image
Zen

You're welcome Friend

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

Someone should write a Markdown tutorial 😄

In VSCode, I really recommend markdownlint.

(I also know that there is an Information icon down there.)