Basic JavaScript - Introducing Else If Statements

So I’m a little bit confused I’m in step 71 JavaScript Algorithms and Data Structures. However, it seems like it’s got updated and now when I’m going back to it in the main menu it’s a whole different thing than what I’m doing right now. It seems like more of HTML my previous course should I continue what I’m doing right now even though I can’t find it in their menu anymore, it’s a little bit hard for me to explain. I can take a screenshot. Please inform me since I started that it seems so different than the HTML. It’s like mathematics thank you so much.

Your code so far

function testElseIf(val) {
  if (val > 10) {
    return "Greater than 10";
  } else if (val < 5) {
    return "Smaller than 5";
  } else {
   return "Between 5 and 10";
}

testElseIf(7);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

Basic JavaScript - Introducing Else If Statements

Basic JavaScript

JavaScript is a scripting language you can use to make web pages interactive. It is one of the core technologies of the web, along with HTML and CSS, and is supported by all modern browsers.

In this course, you’ll learn fundamental programming concepts in JavaScript. You’ll start with basic data structures like numbers and strings. Then you’ll learn to work with arrays, objects, functions, loops, if/else statements, and more.

Collapse courseBasic JavaScript

the comment above it’s what I’ve done so far 71 steps in the comment below. It’s the comment above it’s what I’ve done so far 71 steps in the comment below looks like a new version.

Learn Basic JavaScript by Building a Role Playing Game, Not started

JavaScript is a powerful scripting language that you can use to make web pages interactive. It’s one of the core technologies of the web, along with HTML and CSS. All modern browsers support JavaScript.

In this practice project, you’ll learn fundamental programming concepts in JavaScript by coding your own Role Playing Game. You’ll learn how to work with arrays, strings, objects, functions, loops, if/else statements, and more.

Start projectLearn Basic JavaScript by Building a Role Playing Game JavaScript is a powerful scripting language that you can use to make web pages interactive. It’s one of the core technologies of the web, along with HTML and CSS. All modern browsers support JavaScript.

In this practice project, you’ll learn fundamental programming concepts in JavaScript by coding your own Role Playing Game. You’ll learn how to work with arrays, strings, objects, functions, loops, if/else statements, and more.

I think I understand my mistake immediately after I finish HTML, and got my certificate by accident probably started the wrong course. This is why I couldn’t find it now I could find it in the bottom of the chart of the menu of the courses.

We just released the new JS course today.
You started the right one, it was just updated as you were using it.

The new JS course will give you tons more practice and give you the confidence to build interactive web applications using HTML, CSS and JavaScript :+1:

1 Like

OK, thank you so much for this I got so confused and to be honest I felt very low confident with the course the time right now Dorian it was so challenging and felt very different than the HTML so I shouldn’t continue the previous course and start the new one correct? My goal is to succeed in all of the courses. They will can have a career with those courses maybe

Most people go through this.

HTML and CSS are markup languages and typically easier to wrap your head around as a beginner.

But JavaScript is a programming language.
So not only are you learning programming, but also JavaScript syntax at the same time.
It will take time and practice before you start to get comfortable with it.

It sounds like you are at the beginning with JavaScript so I would suggest starting back with the new course.
It will provide you with a lot more repetition and practice so the concepts will sink in better. :+1:

1 Like

I really appreciate your help. Thank you so much. !

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.