DEV Community

Discussion on: 15+ Array Methods in Javascript

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
codewithtee profile image
Tabassum Khanum

Hey Dennis! I used the markdown syntax highlighting and hope the snippets are more readable now.

Collapse
 
lionelrowe profile image
lionel-rowe

You need to specify the language β€” ruby is a different language, which is why the highlighting looks wierd β€” you want js.

```js
const x = js.syntaxHighlight() // comment
```
Enter fullscreen mode Exit fullscreen mode
const x = js.syntaxHighlight() // comment
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
codewithtee profile image
Tabassum Khanum

Thank you so for much lionel for correcting!