mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
chore(curriculum): rm vids from Intro to JS & data types lectures (#61606)
This commit is contained in:
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 672d26385dbe73203c4dac81
|
||||
title: What Is JavaScript, and How Does It Work with HTML and CSS?
|
||||
challengeType: 11
|
||||
videoId: G7lc_Yt2fqY
|
||||
challengeType: 19
|
||||
dashedName: what-is-javascript
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What is JavaScript, and how does it work with HTML and CSS?
|
||||
|
||||
JavaScript is a powerful programming language that brings interactivity and dynamic behavior to websites.
|
||||
|
||||
While HTML and CSS are markup languages used to structure content and style elements on a page, JavaScript goes beyond those by enabling more complex functionality, such as handling user input, animating elements, and even building full web applications.
|
||||
|
||||
+3
-10
@@ -1,24 +1,17 @@
|
||||
---
|
||||
id: 672d496eca926b5df8176a67
|
||||
title: What Is a Data Type, and What Are the Different Data Types in JavaScript?
|
||||
challengeType: 11
|
||||
videoId: DQgf3RxOiQg
|
||||
challengeType: 19
|
||||
dashedName: what-is-a-data-type
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What is a data type, and what are the different data types in JavaScript?
|
||||
|
||||
In JavaScript, a data type refers to the kind of value a variable holds.
|
||||
|
||||
A variable is a named container that stores a value of a specific data type, allowing you to reference and manipulate it throughout your code. Data types help the program understand the kind of data it's working with, whether it's a number, text, or something else.
|
||||
|
||||
JavaScript has several basic data types that you'll use in your programs. We'll explore each data type in greater detail in future lecture videos. For now, here is a brief introduction of the different data types in JavaScript.
|
||||
JavaScript has several basic data types that you'll use in your programs. We'll explore each data type in greater detail in future lectures. For now, here is a brief introduction of the different data types in JavaScript.
|
||||
|
||||
The first data type we will look at is the `Number` type.
|
||||
|
||||
@@ -58,7 +51,7 @@ let book = {
|
||||
|
||||
In this object, `title`, `author`, and `year` are the keys (or property names). `The Great Gatsby`, `F. Scott Fitzgerald`, and `1925` are the corresponding values.
|
||||
|
||||
Each key-value pair in an object is called a property. So we can say that this book object has three properties. This is just a basic introduction to objects and their properties. In future videos, we'll go deeper into more advanced concepts.
|
||||
Each key-value pair in an object is called a property. So we can say that this book object has three properties. This is just a basic introduction to objects and their properties. In future lectures, we'll go deeper into more advanced concepts.
|
||||
|
||||
The last two data types are the `Symbol` and `BigInt` data types.
|
||||
|
||||
|
||||
+2
-9
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 672d497cb1a1675e47bf7ea1
|
||||
title: What Are Variables, and What Are Guidelines for Naming JavaScript Variables?
|
||||
challengeType: 11
|
||||
videoId: h6ytd29mrrg
|
||||
challengeType: 19
|
||||
dashedName: what-are-variables
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What are variables, and what are guidelines for naming JavaScript variables?
|
||||
|
||||
In JavaScript, variables act as containers for storing data that you can access and modify throughout your program.
|
||||
|
||||
You can think of variables as boxes that hold values. With variables, you can keep track of things like numbers or text and refer to these values whenever you need them in your program.
|
||||
@@ -32,7 +25,7 @@ Right now, the `age` variable does not have a value assigned to it. To assign a
|
||||
let age = 25;
|
||||
```
|
||||
|
||||
The assignment operator looks like an equals sign (`=`) but it doesn't check for equality. You'll learn about the correct operators for checking equality in future videos.
|
||||
The assignment operator looks like an equals sign (`=`) but it doesn't check for equality. You'll learn about the correct operators for checking equality in future lectures.
|
||||
|
||||
The assignment operator is used to assign a value to a variable. This process of assigning a value to a variable is known as initialization.
|
||||
|
||||
|
||||
+4
-11
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 672d49959621885e9d3e672c
|
||||
title: How Do let and const Work Differently When It Comes to Variable Declaration, Assignment, and Reassignment?
|
||||
challengeType: 11
|
||||
videoId: LWqokdJpWqE
|
||||
challengeType: 19
|
||||
dashedName: how-do-let-and-const-work
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
How do `let` and `const` differ when is comes to variable declaration, assignment, and reassignment?
|
||||
|
||||
When working with JavaScript, you'll often declare variables to store data that you plan to use throughout your program.
|
||||
|
||||
In modern JavaScript, `let` and `const` are the preferred ways to declare variables, but they differ in how they handle value assignment and reassignment.
|
||||
@@ -123,7 +116,7 @@ const maxScore === 100;
|
||||
|
||||
### --feedback--
|
||||
|
||||
Refer to the end of the video where this was discussed.
|
||||
Refer to the end of the lecture where this was discussed.
|
||||
|
||||
---
|
||||
|
||||
@@ -139,7 +132,7 @@ const maxScore <= 100;
|
||||
|
||||
### --feedback--
|
||||
|
||||
Refer to the end of the video where this was discussed.
|
||||
Refer to the end of the lecture where this was discussed.
|
||||
|
||||
---
|
||||
|
||||
@@ -149,7 +142,7 @@ const maxScore == 100;
|
||||
|
||||
### --feedback--
|
||||
|
||||
Refer to the end of the video where this was discussed.
|
||||
Refer to the end of the lecture where this was discussed.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
|
||||
+5
-12
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 672d49a5cf43945ee09e5fba
|
||||
title: What Is a String in JavaScript, and What Is String Immutability?
|
||||
challengeType: 11
|
||||
videoId: AXinCYvj7h8
|
||||
challengeType: 19
|
||||
dashedName: what-is-a-string
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What is a string in JavaScript, and what is string immutability?
|
||||
|
||||
In JavaScript, a string is a sequence of characters used to represent text data. Strings are one of the primitive data types in the language, along with numbers, booleans, `null`, and `undefined`.
|
||||
|
||||
To create a string in JavaScript, you can use single quotes (`'`), or double quotes (`"`).
|
||||
@@ -44,7 +37,7 @@ developer = "Quincy";
|
||||
|
||||
Since strings are immutable, we can't update the first string directly. That is why we are assigning a new string to the `developer` variable.
|
||||
|
||||
Strings are an important part of programming, and in future lecture videos, you will learn advanced techniques for manipulating them and harnessing their full potential to create dynamic and interactive applications.
|
||||
Strings are an important part of programming, and in future lectures, you will learn advanced techniques for manipulating them and harnessing their full potential to create dynamic and interactive applications.
|
||||
|
||||
# --questions--
|
||||
|
||||
@@ -58,7 +51,7 @@ Which of the following is the correct syntax for creating strings in JavaScript?
|
||||
|
||||
### --feedback--
|
||||
|
||||
Review the beginning portion of the video where strings were first introduced.
|
||||
Review the examples given in the lecture.
|
||||
|
||||
---
|
||||
|
||||
@@ -66,7 +59,7 @@ Review the beginning portion of the video where strings were first introduced.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Review the beginning portion of the video where strings were first introduced.
|
||||
Review the examples given in the lecture.
|
||||
|
||||
---
|
||||
|
||||
@@ -78,7 +71,7 @@ Review the beginning portion of the video where strings were first introduced.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Review the beginning portion of the video where strings were first introduced.
|
||||
Review the examples given in the lecture.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
|
||||
+8
-15
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 672d49b2fb76df5f1d6117af
|
||||
title: What Is String Concatenation, and How Can You Concatenate Strings with Variables?
|
||||
challengeType: 11
|
||||
videoId: 4bCDHakINH8
|
||||
challengeType: 19
|
||||
dashedName: what-is-string-concatenation
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What is string concatenation, and how can you concatenate strings with variables?
|
||||
|
||||
In JavaScript, working with text is an essential part of coding, and often, you'll need to combine or join pieces of text together. This process is called string concatenation.
|
||||
|
||||
In this lecture, we'll focus on how string concatenation works, specifically using the `+` operator, the `+=` operator, and the `concat()` method.
|
||||
@@ -65,7 +58,7 @@ Before we begin learning about the `concat()` method, it is important to first u
|
||||
|
||||
In programming, a function is a reusable block of code that performs a specific task and can be called with various inputs. A method, on the other hand, is a type of function that is associated with an object, meaning it operates on the data contained within that object.
|
||||
|
||||
In future lecture videos, we will dive much deeper into how functions, objects, and methods work in JavaScript. But for now, it is important to understand that JavaScript has dozens of methods you can use, like the `concat()` method.
|
||||
In future lectures, we will dive much deeper into how functions, objects, and methods work in JavaScript. But for now, it is important to understand that JavaScript has dozens of methods you can use, like the `concat()` method.
|
||||
|
||||
Here's an example of using the `concat()` method to join two strings together:
|
||||
|
||||
@@ -135,7 +128,7 @@ greeting -= " there!";
|
||||
|
||||
### --feedback--
|
||||
|
||||
Refer to the middle of the video where this was discussed.
|
||||
Refer back to the third example given in this lecture.
|
||||
|
||||
---
|
||||
|
||||
@@ -146,7 +139,7 @@ greeting =+ " there!";
|
||||
|
||||
### --feedback--
|
||||
|
||||
Refer to the middle of the video where this was discussed.
|
||||
Refer back to the third example given in this lecture.
|
||||
|
||||
---
|
||||
|
||||
@@ -164,7 +157,7 @@ greeting == " there!";
|
||||
|
||||
### --feedback--
|
||||
|
||||
Refer to the middle of the video where this was discussed.
|
||||
Refer back to the third example given in this lecture.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
@@ -181,7 +174,7 @@ Which of the following is the correct method to concatenate multiple strings?
|
||||
|
||||
### --feedback--
|
||||
|
||||
Refer to the end of the video where this was discussed.
|
||||
Refer to the end of the lecture where this was discussed.
|
||||
|
||||
---
|
||||
|
||||
@@ -193,7 +186,7 @@ Refer to the end of the video where this was discussed.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Refer to the end of the video where this was discussed.
|
||||
Refer to the end of the lecture where this was discussed.
|
||||
|
||||
---
|
||||
|
||||
@@ -201,7 +194,7 @@ Refer to the end of the video where this was discussed.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Refer to the end of the video where this was discussed.
|
||||
Refer to the end of the lecture where this was discussed.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
|
||||
+4
-11
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 672d49c4e899345f5b33c24c
|
||||
title: What Is console.log Used For, and How Does It Work?
|
||||
challengeType: 11
|
||||
videoId: J9CeRj7EBmM
|
||||
challengeType: 19
|
||||
dashedName: what-is-console-log
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What is `console.log()` used for, and how does it work?
|
||||
|
||||
In JavaScript, `console.log()` is a simple yet powerful tool used to display messages or output information to the browser's console. It's mostly used by developers to debug and inspect code while working on their programs.
|
||||
|
||||
You can use `console.log()` to log text or variables to the console and ensure your code is running correctly.
|
||||
@@ -127,7 +120,7 @@ It is commonly used to check the performance for an application and see the resu
|
||||
|
||||
### --feedback--
|
||||
|
||||
Review the beginning of the video where this was discussed.
|
||||
Review the beginning of the lecture where this was discussed.
|
||||
|
||||
---
|
||||
|
||||
@@ -139,7 +132,7 @@ It is commonly used to check for linting errors in your code and display those e
|
||||
|
||||
### --feedback--
|
||||
|
||||
Review the beginning of the video where this was discussed.
|
||||
Review the beginning of the lecture where this was discussed.
|
||||
|
||||
---
|
||||
|
||||
@@ -147,7 +140,7 @@ It is commonly used to ensure that your JavaScript code is adhering to best prac
|
||||
|
||||
### --feedback--
|
||||
|
||||
Review the beginning of the video where this was discussed.
|
||||
Review the beginning of the lecture where this was discussed.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 672d49d93b54b85faa4dbad7
|
||||
title: What Is the Role of Semicolons in JavaScript, and Programming in General?
|
||||
challengeType: 11
|
||||
videoId: BgZYZV0_-UM
|
||||
challengeType: 19
|
||||
dashedName: what-is-the-role-of-semicolons
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What is the role of semicolons in JavaScript, and programming in general?
|
||||
|
||||
In JavaScript, and many other programming languages, semicolons help delineate statements and improve code readability.
|
||||
|
||||
In JavaScript, a semicolon (`;`) is used to indicate the end of a statement.
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 672d49e65a1c855fe7bb3fdb
|
||||
title: What Are Comments in JavaScript, and When Should You Use Them?
|
||||
challengeType: 11
|
||||
videoId: 5v0mlKT86Ps
|
||||
challengeType: 19
|
||||
dashedName: what-are-comments-in-javascript
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What are comments in JavaScript, and when should you use them?
|
||||
|
||||
Comments in programming are used to provide additional context for the code or leave notes for yourself and others.
|
||||
|
||||
Comments are lines or blocks of text that are ignored by the JavaScript engine when your code is executed. They are there solely for the benefit of people reading the code, whether that's you or someone else.
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 672d264645e289208e562f10
|
||||
title: What Is Dynamic Typing in JavaScript, and How Does It Differ from Statically Typed Languages?
|
||||
challengeType: 11
|
||||
videoId: IOKsF08zioQ
|
||||
challengeType: 19
|
||||
dashedName: what-is-dynamic-typing-in-javascript-and-how-does-it-differ-from-statically-typed-languages
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What is dynamic typing in JavaScript, and how does it differ from statically types languages?
|
||||
|
||||
JavaScript is a dynamically typed language, meaning you don't need to specify the data type of a variable when you declare it. Instead, the type is determined based on the value assigned to the variable while the program is running. This allows you to change the type of a variable throughout the program.
|
||||
|
||||
Let's look at an example:
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6732518a8627876f4fcd18a4
|
||||
title: How Does the typeof Operator Work, and What Is the typeof null Bug in JavaScript?
|
||||
challengeType: 11
|
||||
videoId: DDHu5VDlkPM
|
||||
challengeType: 19
|
||||
dashedName: how-does-the-typeof-operator-work-and-what-is-the-typeof-null-bug-in-javascript
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
How does the `typeof` operator work, and what is the `typeof null` bug in JavaScript?
|
||||
|
||||
The `typeof` operator in JavaScript is a simple yet powerful tool that lets you see the data type of a variable or value. It always returns a string indicating the type.
|
||||
|
||||
Let's take a look at a few examples:
|
||||
|
||||
Reference in New Issue
Block a user