Basic Javascript (87/111) | Delete Properties from a JavaScript Object | freeCodeCamp

Published: 14 November 2020
on channel: Stral Tech
192
5

Basic Javascript (87/111) | Delete Properties from a JavaScript Object | freeCodeCamp

Full playlist 👉    • Basic JavaScript (1/111) | Comment Your Ja...  

"We can also delete properties from objects like this:

delete ourDog.bark;

Example:

var ourDog = {
""name"": ""Camper"",
""legs"": 4,
""tails"": 1,
""friends"": [""everything!""],
""bark"": ""bow-wow""
};

delete ourDog.bark;
After the last line shown above, ourDog looks like:

{
""name"": ""Camper"",
""legs"": 4,
""tails"": 1,
""friends"": [""everything!""]
}
Delete the ""tails"" property from myDog. You may use either dot or bracket notation."

https://www.freecodecamp.org/learn/ja...


On this page of the site you can watch the video online Basic Javascript (87/111) | Delete Properties from a JavaScript Object | freeCodeCamp with a duration of hours minute second in good quality, which was uploaded by the user Stral Tech 14 November 2020, share the link with friends and acquaintances, this video has already been watched 192 times on youtube and it was liked by 5 viewers. Enjoy your viewing!