I found that this code was generally more pleasing to the eyes
const name = 'Ifeoluwa'
function Welcome() {
console.log(`Welcome ${name} you made it here!`)
}
To this below
const name = 'Ifeoluwa'
function Welcome() {
console.log(`Welcome ${name} you made it here!`)
}
What's the secret? Nothing too complicated. To achieve this, you only need to specify the language the code is written in.
Normally when you open a code block it goes something like
Add the name like this
And it will render this
const msg = 'You did it!';
Conclusion
Congratulations! Now your blog post would have a nicer look from today onward, thanks for reading.
Top comments (0)