mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): update code example in js debugging review (#66160)
This commit is contained in:
+2
@@ -58,6 +58,8 @@ function validateNumber(input) {
|
|||||||
}
|
}
|
||||||
return input * 2;
|
return input * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(validateNumber("Naomi")); // TypeError: Expected a number, but received string
|
||||||
```
|
```
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|||||||
Reference in New Issue
Block a user