I just want to share with you a cool tool that I have been using a lot lately called "Carbon". It allows you to create and share beautiful images of your source code.
This is pretty useful if you want to share some code in Slack, LinkedIn, or even in a post here.
It is super easy to use and super easy to customize.
Of course, you can write your code here and it looks good, right?
// taking kilometers input from the user
const kilometers = prompt("Enter value in kilometers: ")
// conversion factor
const factor = 0.621371
// calculate miles
const miles = kilometers * factor
console.log(`${kilometers} kilometers is equal to ${miles} miles.`);
But c'mon, this looks clean
That's all, I hope it can be helpful for you ๐ฅณ
Top comments (0)