mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
chore(curriculum): rm vids from working with objects lectures (#61586)
This commit is contained in:
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 67329f737126b75bcb949e13
|
||||
title: What Is an Object in JavaScript, and How Can You Access Properties from an Object?
|
||||
challengeType: 11
|
||||
videoId: JNFs7YHLRFQ
|
||||
challengeType: 19
|
||||
dashedName: what-is-an-object-in-javascript-and-how-can-you-access-properties-from-an-object
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What is a JavaScript object, and how can you access properties from an object?
|
||||
|
||||
In JavaScript, an object is a fundamental data structure that allows you to store and organize related data and functionality.
|
||||
|
||||
You can think of an object as a container that holds various pieces of information, much like a filing cabinet holds different folders and documents.
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6732b721eb98f224868b44a6
|
||||
title: How Can You Remove Properties from an Object?
|
||||
challengeType: 11
|
||||
videoId: sz2K-rYNjSI
|
||||
challengeType: 19
|
||||
dashedName: how-can-you-remove-properties-from-an-object
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
How can you remove properties from an object?
|
||||
|
||||
There are several ways to remove properties from an object, with the `delete` operator being the most straightforward and commonly used method.
|
||||
|
||||
When you use `delete`, it removes the selected property from the object. Here's an example of how to use the `delete` operator:
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6732b72961f94324bd6390de
|
||||
title: How to Check If an Object Has a Property?
|
||||
challengeType: 11
|
||||
videoId: i1MpmDeRZ_0
|
||||
challengeType: 19
|
||||
dashedName: how-to-check-if-an-object-has-a-property
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
How to check if an object has a property?
|
||||
|
||||
In JavaScript, there are several ways to check if an object has a specific property. Understanding these methods is important for working effectively with objects, especially when you're dealing with data from external sources or when you need to ensure certain properties exist before using them.
|
||||
|
||||
We'll explore three common approaches: the `hasOwnProperty()` method, the `in` operator, and checking against `undefined`.
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6732b73509f71f24ef05e86e
|
||||
title: How Do You Work with Accessing Properties from Nested Objects and Arrays in Objects?
|
||||
challengeType: 11
|
||||
videoId: f7uZdVLZuCA
|
||||
challengeType: 19
|
||||
dashedName: how-do-you-work-with-accessing-properties-from-nested-objects-and-arrays-in-objects
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
How do you work with accessing properties from nested objects and arrays in objects?
|
||||
|
||||
When working with JavaScript, you'll often encounter complex data structures that involve nested objects and arrays within objects. These structures can represent rich, hierarchical data, but they also require a clear understanding of how to access and manipulate the data within them. Let's explore how to navigate these nested structures effectively.
|
||||
|
||||
Accessing properties from nested objects involves using the dot notation or bracket notation, much like accessing properties from simple objects. However, you'll need to chain these accessors to drill down into the nested structure.
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6732b73d25cc01251b778043
|
||||
title: What Is the Difference Between Primitive and Non-Primitive Data Types?
|
||||
challengeType: 11
|
||||
videoId: c-jyZdhWIYk
|
||||
challengeType: 19
|
||||
dashedName: what-is-the-difference-between-primitive-and-non-primitive-data-types
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What is the difference between primitive and non-primitive data types?
|
||||
|
||||
In JavaScript, understanding the difference between primitive and non-primitive data types is important for writing efficient and bug-free code.
|
||||
|
||||
These two categories of data types behave differently in terms of how they are stored in memory and how they are manipulated in your programs.
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6732b749b8aad125523dcda5
|
||||
title: What Is the Difference Between Functions and Object Methods?
|
||||
challengeType: 11
|
||||
videoId: Jufe8vG8TVo
|
||||
challengeType: 19
|
||||
dashedName: what-is-the-difference-between-functions-and-object-methods
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What is the difference between functions and methods?
|
||||
|
||||
In JavaScript, functions and object methods are both ways to encapsulate reusable code, but they have some key differences in how they are defined, used, and the context in which they operate. Understanding these differences is crucial for writing effective and organized JavaScript code.
|
||||
|
||||
As you learned in earlier modules, functions are reusable blocks of code that perform a specific task:
|
||||
|
||||
+2
-9
@@ -1,22 +1,15 @@
|
||||
---
|
||||
id: 6732b758194c97257d23fc72
|
||||
title: What Is the Object() Constructor, and When Should You Use It?
|
||||
challengeType: 11
|
||||
videoId: o-AsC8Z7Vng
|
||||
challengeType: 19
|
||||
dashedName: what-is-the-object-constructor-and-when-should-you-use-it
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What is the `Object()` constructor and when should you use it?
|
||||
|
||||
In JavaScript, a constructor is a special type of function used to create and initialize objects. It is invoked with the `new` keyword and can initialize properties and methods on the newly created object.
|
||||
|
||||
In this video, we will take a look at how to work with the `Object()` constructor. The `Object()` constructor creates a new empty object. Here is an example:
|
||||
In this lecture, we will take a look at how to work with the `Object()` constructor. The `Object()` constructor creates a new empty object. Here is an example:
|
||||
|
||||
```js
|
||||
new Object()
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6732b76c03f7d825c7fc74ee
|
||||
title: What Is the Optional Chaining Operator, and How Does It Work?
|
||||
challengeType: 11
|
||||
videoId: s9EDuy0Djco
|
||||
challengeType: 19
|
||||
dashedName: what-is-the-optional-chaining-operator-and-how-does-it-work
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What is the optional chaining operator and how does it work?
|
||||
|
||||
The optional chaining operator (`?.`) is a useful tool in JavaScript that lets you safely access object properties or call methods without worrying whether they exist. It's like a safety net for working with objects that might have missing parts.
|
||||
|
||||
```js
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6732b77adf9de12617a2dbb3
|
||||
title: What Is Object Destructuring, and How Does It Work?
|
||||
challengeType: 11
|
||||
videoId: XMS8vSutlUc
|
||||
challengeType: 19
|
||||
dashedName: what-is-object-destructuring-and-how-does-it-work
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What is object destructuring and how does it work?
|
||||
|
||||
Object destructuring is a powerful feature in JavaScript that allows you to extract values from objects and assign them to variables in a more concise and readable way.
|
||||
|
||||
It's part of the ES6 (ECMAScript 2015) specification and has become an essential tool for many JavaScript developers.
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6732b79c6aa77826855a3f11
|
||||
title: How Do JSON.parse() and JSON.stringify() Work?
|
||||
challengeType: 11
|
||||
videoId: gjnT8byXAc0
|
||||
challengeType: 19
|
||||
dashedName: how-do-json-parse-and-json-stringify-work
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
How do `JSON.parse()` and `JSON.stringify()` work?
|
||||
|
||||
There are two powerful methods in JavaScript for handling JSON data: `JSON.parse()` and `JSON.stringify()`. These methods are commonly used to convert between JSON strings and JavaScript objects.
|
||||
|
||||
`JSON.stringify()` is used to convert a JavaScript object into a JSON string. This is useful when you want to store or transmit data in a format that can be easily shared or transferred between systems.
|
||||
|
||||
Reference in New Issue
Block a user