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
@ -110,7 +110,7 @@ localeTitle: تحويل كيانات HTML
|
|||||||
|
|
||||||
` function convertHTML(str) {
|
` function convertHTML(str) {
|
||||||
// Use Object Lookup to declare as many HTML entities as needed.
|
// Use Object Lookup to declare as many HTML entities as needed.
|
||||||
htmlEntities={
|
const htmlEntities={
|
||||||
'&':'&',
|
'&':'&',
|
||||||
'<':'<',
|
'<':'<',
|
||||||
'>':'>',
|
'>':'>',
|
||||||
|
@ -112,7 +112,7 @@ function convertHTML(str) {
|
|||||||
```javascript
|
```javascript
|
||||||
function convertHTML(str) {
|
function convertHTML(str) {
|
||||||
// Use Object Lookup to declare as many HTML entities as needed.
|
// Use Object Lookup to declare as many HTML entities as needed.
|
||||||
htmlEntities={
|
const htmlEntities={
|
||||||
'&':'&',
|
'&':'&',
|
||||||
'<':'<',
|
'<':'<',
|
||||||
'>':'>',
|
'>':'>',
|
||||||
|
@ -107,7 +107,7 @@ Explain solution here and add any relevant links
|
|||||||
```javascript
|
```javascript
|
||||||
function convertHTML(str) {
|
function convertHTML(str) {
|
||||||
// Use Object Lookup to declare as many HTML entities as needed.
|
// Use Object Lookup to declare as many HTML entities as needed.
|
||||||
htmlEntities={
|
const htmlEntities={
|
||||||
'&':'&',
|
'&':'&',
|
||||||
'<':'<',
|
'<':'<',
|
||||||
'>':'>',
|
'>':'>',
|
||||||
|
@ -112,7 +112,7 @@ Explique a solução aqui e adicione links relevantes
|
|||||||
```javascript
|
```javascript
|
||||||
function convertHTML(str) {
|
function convertHTML(str) {
|
||||||
// Use Object Lookup to declare as many HTML entities as needed.
|
// Use Object Lookup to declare as many HTML entities as needed.
|
||||||
htmlEntities={
|
const htmlEntities={
|
||||||
'&':'&',
|
'&':'&',
|
||||||
'<':'<',
|
'<':'<',
|
||||||
'>':'>',
|
'>':'>',
|
||||||
|
@ -112,7 +112,7 @@ function convertHTML(str) {
|
|||||||
```javascript
|
```javascript
|
||||||
function convertHTML(str) {
|
function convertHTML(str) {
|
||||||
// Use Object Lookup to declare as many HTML entities as needed.
|
// Use Object Lookup to declare as many HTML entities as needed.
|
||||||
htmlEntities={
|
const htmlEntities={
|
||||||
'&':'&',
|
'&':'&',
|
||||||
'<':'<',
|
'<':'<',
|
||||||
'>':'>',
|
'>':'>',
|
||||||
|
@ -112,7 +112,7 @@ Explica la solución aquí y agrega cualquier enlace relevante.
|
|||||||
```javascript
|
```javascript
|
||||||
function convertHTML(str) {
|
function convertHTML(str) {
|
||||||
// Use Object Lookup to declare as many HTML entities as needed.
|
// Use Object Lookup to declare as many HTML entities as needed.
|
||||||
htmlEntities={
|
const htmlEntities={
|
||||||
'&':'&',
|
'&':'&',
|
||||||
'<':'<',
|
'<':'<',
|
||||||
'>':'>',
|
'>':'>',
|
||||||
|
Reference in New Issue
Block a user