diff --git a/delete/index.js b/delete/index.js new file mode 100644 index 0000000..3824ae2 --- /dev/null +++ b/delete/index.js @@ -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;