You can provide a language after the three back ticks before the code blocks and your JavaScript code will be rendered with syntax highlighting.
The following is taken from your code snippet:
//server.js const http = require('http'); const express = require('express'); const nodemailer = require('nodemailer'); const app = express.Router(); const port = 3000; // remaining code
Hey, Habdul Hazeez. Thanks for the great tip man.
I have made the changes and it sure does look a lot better. Appreciate it.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You can provide a language after the three back ticks before the code blocks and your JavaScript code will be rendered with syntax highlighting.
The following is taken from your code snippet:
Hey, Habdul Hazeez. Thanks for the great tip man.
I have made the changes and it sure does look a lot better. Appreciate it.