Skip to content

Commit

Permalink
example: add deno console
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoboy committed Oct 27, 2023
1 parent fee4048 commit 6b3ea3d
Show file tree
Hide file tree
Showing 4 changed files with 4,138 additions and 0 deletions.
22 changes: 22 additions & 0 deletions boa_examples/scripts/console.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
console.log(1, "a", false, true, Promise.resolve(1), Symbol(1));

console.log(new Set([1, 2, 3, 4]));

console.log(
new Map([
[1, 2],
["a", "b"],
[false, true],
]),
);

let a = [1];
a[1] = a;
console.log(a);

let b = { a: [1, 2, "a"] };
b["b"] = b;

console.log(b);

console.log(new Error("console error"));
Loading

0 comments on commit 6b3ea3d

Please sign in to comment.