Basic Javascript (87/111) | Delete Properties from a JavaScript Object | freeCodeCamp
Full playlist 👉 • Basic JavaScript (1/111) | Comment Yo...
"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...
Watch video Basic Javascript (87/111) | Delete Properties from a JavaScript Object | freeCodeCamp online, duration hours minute second in high quality that is uploaded to the channel Stral Tech 14 November 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 190 times and liked it 5 visitors.