Skip to content

Need to modify the this.js for JSII and JSII-Mini. I'm practically do… - #204

Open
abrambueno1992 wants to merge 5 commits into
bloominstituteoftechnology:masterfrom
abrambueno1992:master
Open

Need to modify the this.js for JSII and JSII-Mini. I'm practically do…#204
abrambueno1992 wants to merge 5 commits into
bloominstituteoftechnology:masterfrom
abrambueno1992:master

Conversation

@abrambueno1992

Copy link
Copy Markdown

…ne, but I need to modify and finish Part 2 of this.js for JSII. I'm a bit confused by part 2 of JSII, but I understand the concepts.

…ne, but I need to modify and finish Part 2 of this.js for JSII. I'm a bit confused by part 2 of JSII, but I understand the concepts.

@frogr frogr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Abraham. There's a lot of linter issues here! These all need to be cleaned up before you submit the assignment moving forward. I'm not able to run the tests until it's handled. I'd appreciate it if you could go back and fix this when you're free!

I'll go through and mark some issues with your code, but until the linting is fixed I can't officially test it with the lambda test suite. I'm confident that a lot of these errors would be fixed if you just went through and followed all the linting messages.

Your logic doesn't seem bad and I think you understand the material, but the linting absolutely needs to be fixed.

Comment thread src/this.js Outdated
constructor(options) {
this.username = options.username;
this.password = options.password;
this.checkPassword = (string) => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checkPassword should be a method outside of the constructor, but still on the class.

Comment thread src/this.js Outdated
// do not modify this function's parameters
// note that we use the `function` keyword and not `=>`
console.log("Password: " +passwordToCompare);
if (this.password === passwordToCompare) return console.log("true and true");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.log for debugging purposes is fine, but here you have to return an actual boolean value

Comment thread src/prototype.js Outdated
this.dimensions = options.dimensions;
}
destroy() {
return `Game object was removed from the game.`

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use " instead of ``` for strings that won't template data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants