DEV Community

Discussion on: Under the hood of Prototypal Inheritance in JavaScript

Collapse
 
midasxiv profile image
Midas/XIV

Hey when you're pasting code just type in 3 backticks then language (js) before code and 3 backticks after the code snippet. This will create a code block that looks like this.

console.log('Hope this helps');
Collapse
 
prachurjya15 profile image
Prachurjya Basistha • Edited

Thnx for your suggestion..is there any way to create indentation?

Collapse
 
midasxiv profile image
Midas/XIV

Nope. Just format code before pasting within the code block. It'll look intended (according to the way you formatted )