Skip to content

Commit

Permalink
Merge pull request #43 from igorcervac/delete
Browse files Browse the repository at this point in the history
Delete object field
  • Loading branch information
igorcervac authored Nov 7, 2024
2 parents f7b243e + 4994bbb commit 286d8b9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions delete/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"use strict";

const point3D = { x: 10, y: 10, z: 10};
console.table(point3D);

delete point3D.y;
delete point3D.z;
console.table(point3D);

// Not working in the strict mode
// var x = 100;
// delete x;

0 comments on commit 286d8b9

Please sign in to comment.