const
26
MENTIONS
8
EPISODES
2
PODCASTS
Search complete. 26 mentions across 8 episodes found for "const".
Sep 17, 2026
Advanced array methods: map, filter, reduce (introduction)
S
2:11speaker_0NARRATOR
Name, Bob, age, 25.
S
2:14speaker_0NARRATOR
Const names equals users dot map user equals greater than user dot name.
S
2:19speaker_0NARRATOR
Slash slash names is Alice, Bob.
S
2:23speaker_0NARRATOR
Key point to remember, if your callback does not return anything, map produces an array full of undefined values.
S
2:45speaker_0NARRATOR
Example.
S
2:46speaker_0NARRATOR
Keep only even numbers.
S
2:48speaker_0NARRATOR
Const numbers equals 1, 2, 3, 4, 5, 6.
S
2:53speaker_0NARRATOR
Const evens equals numbers.filter n equals greater than n% 2 equals equals equals 0.
Workshop: filtering and transforming a list of products
S
1:07speaker_0NARRATOR
Mini example.
S
1:08speaker_0NARRATOR
Const prices equals 10, 25, 40.
S
1:12speaker_0NARRATOR
Const discounted equals prices.map p equals greater than p 0.9 slash slash 9 22.5 36 const expensive equals prices.filter p equals greater than p greater than 20 slash slash 25 40 const total equals prices.reduce he p equals greater than he plus p 0 slash slash 75.
S
1:37speaker_0NARRATOR
Keep this model in mind.
S
1:38speaker_0NARRATOR
Select transform aggregate.
ES6 boards: creating and accessing elements
S
0:59speaker_0NARRATOR
Examples.
S
1:00speaker_0NARRATOR
Const fruits equals apple, banana, cherry.
S
1:03speaker_0NARRATOR
Const numbers equals 10, 20, 30, 40.
S
1:08speaker_0NARRATOR
Const empty equals.
S
1:10speaker_0NARRATOR
In the first example, apple is at index 0, banana is at index 1, and cherry is at index 2.
S
1:16speaker_0NARRATOR
The third example creates an empty array with no elements yet.
S
5:19speaker_0NARRATOR
Array.isArrayHello returns false.
S
5:22speaker_0NARRATOR
Destructuring arrays, ES6 feature, ES6 introduced array destructuring, a fast way to extract values from an array into separate variables.
Summary review: write a readable and commented script
S
1:22speaker_0NARRATOR
For example, number of clicks.
S
1:23speaker_0NARRATOR
Constants that never change are often written in uppercase with underscores.
S
1:27speaker_0NARRATOR
For example, max underscore attempts.
S
1:29speaker_0NARRATOR
Avoid single letters, except for short loop counters like I, abbreviations that are not obvious, and names that lie about what the value contains.
ES6 functions and arrow functions
S
5:51speaker_0NARRATOR
Say hello.
S
5:52speaker_0NARRATOR
Const say hello equals, equals greater than console.log high.
S
5:56speaker_0NARRATOR
The second example throws an error because the arrow function is not yet defined when it is called.
S
6:01speaker_0NARRATOR
Choosing which to use.
ES6 variables (let, const) and primitive types
S
1:32speaker_0NARRATOR
With const, you must assign a value immediately when declaring it.
S
1:35speaker_0NARRATOR
The following is invalid.
S
1:37speaker_0NARRATOR
Const name, slash slash error.
S
1:40speaker_0NARRATOR
Missing initializer in const declaration.
S
1:43speaker_0NARRATOR
Important nuance about const and objects.
S
1:45speaker_0NARRATOR
Const prevents reassignment of the variable itself, but it does not make the content immutable when the value is an object or an array.
S
1:53speaker_0NARRATOR
You cannot reassign the variable, but you can still modify the properties or elements inside.
S
1:58speaker_0NARRATOR
Example, const user equals name Alice.
Assessment and transition to JavaScript implementation
S
4:04speaker_0NARRATOR
Modern JavaScript also offers a shorter form called an arrow function.
S
4:08speaker_0NARRATOR
Const find minimum equals numbers equals greater than both do the same job.
S
4:13speaker_0NARRATOR
Working with lists.
S
4:14speaker_0NARRATOR
In JavaScript, a list is written with square brackets.
S
5:01speaker_0NARRATOR
Comments in JavaScript start with two slashes, slash, slash for a single line or are wrapped in for several lines.
S
5:07speaker_0NARRATOR
Let us tie everything together with a complete example that reuses your cash register logic in JavaScript.
S
5:13speaker_0NARRATOR
Const prices equals twelve, eight, twenty-five.
S
5:16speaker_0NARRATOR
Let total equal zero.
Spiritual Sunday: Finding Hope and Learning to Keep Going with Rev. Danté Stewart
D
28:20Danté StewartGUEST
I think on some level, we the people, in order to form a more perfect union, to establish justice, to ensure domestic tranquility.
D
28:30Danté StewartGUEST
At the beginning of the Consti- the, the, the, uh, Constitution in the Preamble, that in some sense is the ghost that haunt us right now spiritually.
D
28:39Danté StewartGUEST
We're struggling with we the people.
D
28:42Danté StewartGUEST
Now, if I can, let me put on reverend hat real quick and let me turn into a preacher.