Javascript#

Block Highlighting#

Language highlighting can be enabled with Highlight.js by adding a supported programming language name directly after the first ``` grouping in a Markdown code block:

let score1 = 2;
let score2 = 5;
let averageScore = (score1 + score2) / 2.0
console.log(averageScore)

Block Markdown#

```javascript
let score1 = 2;
let score2 = 5;
let averageScore = (score1 + score2) / 2.0
console.log(averageScore)
```

Script adapted from Austin Asoluka's "How to Use Variables and Data Types in JavaScript – Explained With Code Examples"