PythonIntermediate PythonNumPySQLGen AI
HTMLCSSJavaScriptIntermediate JavaScriptReactp5.jsNode.js
Command LineGit & GitHub
C++JavaData Structures & Algorithms

Exercise

01. Intー*ラηΔØ=ドト

ES6

It's time to turn the knobs up a notch. ⏫

In 2015, a major shift in how we write modern JavaScript occurred with the release of ECMAScript 2015 (or ES6). This led to features such as:

  • Making functions in a more concise way.
  • Writing strings with variables inside of them.
  • Using spread and rest operators for arrays and objects.
  • Using promises for asynchronous operations (next chapter).

Over time, the syntax from ES6 has helped us write cleaner, clearer JavaScript code.

In this chapter, we'll start learning some ES6 syntax that includes arrow functions, template literals, and the for...of and for...in loops.

Note: If you're using let and const for variables, you're already writing in ES6! 😀

Our Editor

For this course, we'll be using two different editors to teach various concepts.

  • This chapter will use a simple JS editor with a Console window.
  • The next chapter will use an editor that supports HTML, CSS, and JS code.

Instructions

For this exercise, you don't have to do anything.

Go ahead and hit "Complete" to continue onward!

Help

Get a Hint

New Item Unlocked!

pom pom characters gifitem duck

Rubber Duck NEW

Rubber duck debugging is a classic technique used by developers to debug code. By explaining the code line-by-line to a rubber duck, you can break down the code into smaller pieces, and potentially identify the error.

... It's silly, we know.

New Item Unlocked!

pom pom characters gifitem duck

Codédex BotNEW

I’m a coding mentor bot built with GPT-4 👋. I’m here to answer any questions related to programming, Codédex, and much more.

FEATURE UNLOCKED!

sad characters gif

You have 100 XP! This means you can now join our Discord community to chat and hang out with fellow learners and the team behind Codédex!
See you there. 😊

FEATURE UNLOCKED!

pom pom characters gif

You have 250 XP! This means you can now join our On-Platform community to chat and hang out with fellow learners!
Say hi in the Introductions channel. 😊

js logoindex.js

item duck
item duck
item duck
Loading...

Console

user image

Hi, I’m Codédex Bot! I’m a coding mentor bot built with GPT-4 👋.

I’m here to answer any questions related to programming, Codédex, and much more.

For example, try to ask something like:

  • What are classes and objects in Python?
  • How to create a table in HTML?
  • What's if (variable > 2) print(‘greater’)?
  • What's Codédex Club?
send image
user image
send image

Exercise

01. Intれδ[ΔΔト—イ!

ES6

It's time to turn the knobs up a notch. ⏫

In 2015, a major shift in how we write modern JavaScript occurred with the release of ECMAScript 2015 (or ES6). This led to features such as:

  • Making functions in a more concise way.
  • Writing strings with variables inside of them.
  • Using spread and rest operators for arrays and objects.
  • Using promises for asynchronous operations (next chapter).

Over time, the syntax from ES6 has helped us write cleaner, clearer JavaScript code.

In this chapter, we'll start learning some ES6 syntax that includes arrow functions, template literals, and the for...of and for...in loops.

Note: If you're using let and const for variables, you're already writing in ES6! 😀

Our Editor

For this course, we'll be using two different editors to teach various concepts.

  • This chapter will use a simple JS editor with a Console window.
  • The next chapter will use an editor that supports HTML, CSS, and JS code.

Instructions

For this exercise, you don't have to do anything.

Go ahead and hit "Complete" to continue onward!

Help

Get a Hint

FEATURE UNLOCKED!

sad characters gif

You have 100 XP! This means you can now join our Discord community to chat and hang out with fellow learners and the team behind Codédex!
See you there. 😊

FEATURE UNLOCKED!

pom pom characters gif

You have 250 XP! This means you can now join our On-Platform community to chat and hang out with fellow learners!
Say hi in the Introductions channel. 😊

js logoindex.js

item duck
item duck
item duck
Loading...