-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More fixes to Expected output comments in JS examples.
- Loading branch information
Showing
13 changed files
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
console.log(JSON.stringify({ x: 5, y: 6 })); | ||
// Expected output: '{"x":5,"y":6}' | ||
// Expected output: "{"x":5,"y":6}" | ||
|
||
console.log( | ||
JSON.stringify([new Number(3), new String('false'), new Boolean(false)]), | ||
); | ||
// Expected output: '[3,"false",false]' | ||
// Expected output: "[3,"false",false]" | ||
|
||
console.log(JSON.stringify({ x: [10, undefined, function () {}, Symbol('')] })); | ||
// Expected output: '{"x":[10,null,null,null]}' | ||
// Expected output: "{"x":[10,null,null,null]}" | ||
|
||
console.log(JSON.stringify(new Date(2006, 0, 2, 15, 4, 5))); | ||
// Expected output: '"2006-01-02T15:04:05.000Z"' | ||
// Expected output: ""2006-01-02T15:04:05.000Z"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
console.log(String.fromCodePoint(9731, 9733, 9842, 0x2f804)); | ||
// Expected output: "☃★♲你" | ||
// Expected output: "☃★♲你" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const dotted = 'İstanbul'; | ||
|
||
console.log(`EN-US: ${dotted.toLocaleLowerCase('en-US')}`); | ||
// Expected output: "i̇stanbul" | ||
// Expected output: "EN-US: i̇stanbul" | ||
|
||
console.log(`TR: ${dotted.toLocaleLowerCase('tr')}`); | ||
// Expected output: "istanbul" | ||
// Expected output: "TR: istanbul" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const greeting = ' Hello world! '; | ||
|
||
console.log(greeting); | ||
// Expected output: " Hello world! "; | ||
// Expected output: " Hello world! " | ||
|
||
console.log(greeting.trimEnd()); | ||
// Expected output: " Hello world!"; | ||
// Expected output: " Hello world!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const greeting = ' Hello world! '; | ||
|
||
console.log(greeting); | ||
// Expected output: " Hello world! "; | ||
// Expected output: " Hello world! " | ||
|
||
console.log(greeting.trimStart()); | ||
// Expected output: "Hello world! "; | ||
// Expected output: "Hello world! " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters