Guest User

Untitled

a guest
Feb 19th, 2024
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Action {
  2.     constructor(name, age) { this.age = age; this.name = name; }
  3.     execute() { return { name: this.name, age: this.age }; }
  4. };
  5. var u;
  6. for (let i = 0; i < 1000000; i++) {
  7.     u = new Action("name", 100).execute();
  8. }
Advertisement
Add Comment
Please, Sign In to add comment