Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics (Retired) Working With Numbers The Mad Libs Challenge Revisited

Joseph Boyd
Joseph Boyd
1,286 Points

This is totally confusing. i think you are skipping a couple of steps. It just dosent build onto my understanding so far

Please do a workup to this video. Currently there is none.

maybe if you take notes you maybe can understand a little better and review the video.

3 Answers

CHETAN MALIK
CHETAN MALIK
4,346 Points

I agree this video is confusing because of the brackets introduced without any prior info.

Steve Gallant
Steve Gallant
14,943 Points

The square brackets in this video aren't part of the JavaScript code, they are enclosed in quotes and simply a formatting choice by Dave on how to display the number of remaining questions in the dialog boxes.

Shana Gibson
Shana Gibson
8,788 Points

right i was like did i miss something, that was the first time he has used them, things are not being explain in great detail, its like he's skipping all over, a bit of this and that, so confusing at time.

Lia Seltene
Lia Seltene
2,641 Points

I'm also confused. I did see yesterday someone bring attention to the brackets (we hadn't seen that before and I think many of us looked over it thinking they were parentheses) and the plus signs around the variable meaning something in JavaScript and not being part of the string....

For this one I'm going to keep looking in the questions to see if it was resolved but I might have to google about it. I'm right there with you on this one. The rest of the course so far has been great though. This video in particular takes a bit of leap though, I feel.

Daniel Kol Adam
Daniel Kol Adam
3,285 Points

Agreed 100%, where did these brackets come from without any explanation?

Shana Gibson
Shana Gibson
8,788 Points

really confused, did not follow that very well.

Martha Fontelera
Martha Fontelera
1,556 Points

The brackets are merely just for aesthetic purposes. It doesn't really affect the code itself. And also take note that it is in single quote marks so that just says that it's a string. Although I have to agree that this video was a little confusing and I have to watch it 5 times and write it down to fully understand. :)