Skip to content

Commit

Permalink
Change BrE spellings to AmE spellings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaskiranjot-Kaur committed Jan 22, 2025
1 parent 4b1e6dd commit bb9c158
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions live-examples/js-examples/globalprops/globalprops-nan.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
function sanitise(x) {
function sanitize(x) {
if (isNaN(x)) {
return NaN;
}
return x;
}

console.log(sanitise('1'));
console.log(sanitize('1'));
// Expected output: "1"

console.log(sanitise('NotANumber'));
console.log(sanitize('NotANumber'));
// Expected output: NaN

0 comments on commit bb9c158

Please sign in to comment.