DEV Community

Discussion on: 4 Helpful Javascript Array tricks you should know

Collapse
 
moopet profile image
Ben Sinclair

Hi, can I suggest that you put your code into a code block rather than using a screenshot? If you paste it in between three-backticks you get something like this:

console.log("Why hello there");
Enter fullscreen mode Exit fullscreen mode

and that's something that'll help you with:

  • searchability on the page with ctrl/cmd+F
  • searchability through something like Google
  • accessibility (screen-reader users currently see your code as "image description" which is the placeholder Markdown uses here)
  • people wanting to copy/paste your code to try it out for themselves
Collapse
 
talenttinaapi profile image
talent

Thanks Ben for the heads up,much appreciated!!