DEV Community

Discussion on: 15+ Array Methods in Javascript

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!