fixes the Advanced Code Solution to make it work when run tests in the Convert HTML Entities exercise (#24930)
* fix in the Advanced Code Solution to make it work when run tests * making htmlEntities a const to fix the example
This commit is contained in:
committed by
Randell Dawson
parent
a2e01e59db
commit
5c2bd53d5c
@ -107,7 +107,7 @@ Explain solution here and add any relevant links
|
||||
```javascript
|
||||
function convertHTML(str) {
|
||||
// Use Object Lookup to declare as many HTML entities as needed.
|
||||
htmlEntities={
|
||||
const htmlEntities={
|
||||
'&':'&',
|
||||
'<':'<',
|
||||
'>':'>',
|
||||
|
Reference in New Issue
Block a user