-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added initial implementation of console.table() with minimal error ha…
…ndling that supports inputting primitive arrays.
- Loading branch information
1 parent
a8b024e
commit ef35292
Showing
3 changed files
with
87 additions
and
40 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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Console.table() better work!</title> | ||
<script> | ||
let obj = { | ||
a: 1, | ||
b: 2, | ||
c: 3 | ||
}; | ||
|
||
//Array of string primitives | ||
console.table(["Hello", "world"]); | ||
|
||
//Array of int primitives | ||
console.table([1, 2, 3, 4, 5]); | ||
|
||
//Array of objects | ||
console.table([obj, obj, obj]); | ||
</script> | ||
</head> | ||
<body> | ||
<p>There will be 3 console.table() calls.</p> | ||
</body> | ||
</html> |