I'm trying to finish off the code academy JS course and it's asking me to make a Constructor Notation
this is what I have:
var spencer2 = new Object (); spencer2.age = 22; spencer2.country = "United States";
it keep telling me it's the wrong type.
and when I go back and look at the lesson with a matching title that shows that setup so not sure where I'm going wrong.
Jo
@thenobleone
.... it didn't like the space between Object and the parentheses.
CliffordChen
@CliffordChen
hey guys, I'm trying to copy-paste my code from sublime onto canvas, and it isn't recognizing indentations. any ideas? Thanks!
Jo
@thenobleone
I just left it that way.
CliffordChen
@CliffordChen
@thenobleone I was thinking that, but afraid that will result in a lot of extra work for the TA's?
Jo
@thenobleone
It's Javascript, whitespace doesn't matter.
Programming like Python and C++ whitespace does matter but HTML and Javascript doesn't actually care about the whitespace to run so I'd be guessing that the TAs are mainly just going to C/P into sublime and run it.
CliffordChen
@CliffordChen
Alright, thanks for the heads up. I know nothing...
Jo
@thenobleone
Glad I could help. Sorry if i came off as short, suddenly had a bunch of things come my way as I was typing.
CliffordChen
@CliffordChen
No worries, appreciate it!
Jayden0306
@Jayden0306
anyone reading the git book?
just wondering
Jo
@thenobleone
Not yet, trying to finish the javascript codeacademy thing. I keep over thinking most of it.
also things like console.log("Hello this is a" + " " + this.breed + " " + "dog”); allows you to pass while console.log(“Hello this is a ” + this.breed + “ dog.”); doesn’t.
Jayden0306
@Jayden0306
the code academy wants you print out same output that they provided with no miss space.
Jo
@thenobleone
Right, I put the space between the a and the quote and a space between the " and dog.
Jayden0306
@Jayden0306
I am still working on the try git assignment. I didn't finish on time because I was tired from work yesterday. :(
Emre Surmeli
@emresurmeli
Hey guys, I found this very helpful, wanted to share:
@CliffordChen Don't worry too much about indentation when you're copy/pasting to Canvas. Worry about indentation, but not in that specific instance. I'll start grading your indentation when you start turning stuff in to Git, which is where I'll actually be able to see your indentation as you did it.
_
CliffordChen
@CliffordChen
@AMPotter thanks for the heads up!
Andrew Michael Potter
@AMPotter
@Melissa-Holm Were you able to get the subl command working?
By the way, if I grade something as 0 or incomplete, it's just my way of nudging you to get it done. There are no late penalties, and resubmissions are allowed. But you still (trust me) want to keep yourself current.
Jo
@thenobleone
Cool.
BTW, did my javascript pre-work update correctly? There was some confusion about what I needed to give in my screenshot.
Andrew Michael Potter
@AMPotter
Just took a look, and you're 30/30, dude! A link to your profile is just about all I need, especially if you have completed skills.
Jo
@thenobleone
Awesome.
Thanks for checking,
Jo
@thenobleone
@AMPotter I'm a little lost on what exactly I'm supposed to link in git to submit my code assignments and there have been so many different links and explanations I'm a bit confused which set of instructions I need to grab the correct repositories. Can I get that link?
Andrew Michael Potter
@AMPotter
Ah. So, what you need to do is send a pull request from a branch to your master, and then submit the link to that pull request.
CliffordChen
@CliffordChen
ughh finally here, just got out of my 9-5
or should I say 8-6 :'(
Andrew Michael Potter
@AMPotter
Rough stuff, Cliff. Take a load off and stare at a screen for an hour!