Just wanted to point out that I received an error for:
// create post1 and post2
var post1 = Object.create (genericPost); // there is a space between Object.create and opening (
var post2 = Object.create (genericPost); // there is a space between Object.create and opening (

I wouldn't want to write a parser for the code area, but know that it is very particular.
Either will run in the Dev Console.

-WWC, "Brad"

moderator: Thanks! Yes, I trust you're correct, as if memory serves this one has some issues. (Many in level 5 do.) It is a bit tricky to write, but possible, and when checking for certain things we either need to not worry about the code itself, and look at the results, or if we are looking at the code, which is sometimes needed, we need to squash whitespace, look just at the grammar where all this is moot, or, if we're using regexes, need to account for zero or more whitespace properly. These types of issues will almost for sure be improved in future versions of this course!

I got it, although I did have to look at the post by fstopzero to figure out the last part. I was wondering, though, since I did the variables differently, if this is an accidental acceptance...? It seems like this should've been rejected??

Can you post all the code you submitted? I don't think it should be accepted--level 5 has a lot of challenges whose test code hasn't been improved since the course was first released, and I think many incorrect answers are accepted (false positives)--but am not sure.

It generates an error, as post1 and post2 aren't properties on genericPost, and as you alluded to, it'll work if you remove genericPost.

It's not looking like I'll get a chance soon, but level 5 has not I don't think had any improvements on correctness, and although non-trivial, if I can find the time I can improve some of these so they at least don't accept incorrect code (code in this case that'd result in an error due to .post1 and .post2 being undefined).

Hello all,
I have a question about this challenge.
Question : Why don't we make the connectedTo property an array and don't use this code
( this.connectionsTo.push(connectedPost) ) instead of using this code

I don't understand why the conditional is necessary, as it is written. I'm confused why creating postArray is necessary to hold connectedPost. As it is written, it is just pushing connectedPost to connectionsTo in both the if and else cases, right? A...