Skip to content

Final version of JS adagrams-Diana S. #133

Open
sorindevops wants to merge 10 commits intoAda-C18:mainfrom
sorindevops:main
Open

Final version of JS adagrams-Diana S. #133
sorindevops wants to merge 10 commits intoAda-C18:mainfrom
sorindevops:main

Conversation

@sorindevops
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@marciaga marciaga left a comment

Choose a reason for hiding this comment

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

Nice job with this one! Specific feedback on lines below.

Comment thread .vscode/launch.json
@@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This will probably break some aspects of VSCode. JSON format does not support comments like in JavaScript.

Comment thread src/adagrams.js

export const drawLetters = () => {
// Implement this method for wave 1
const thisHand = [];
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice job with this function!

Comment thread test/adagrams.test.js

it("returns a score of 0 if given an empty input", () => {
throw "Complete test";
expect(scoreWord("")).toBe(0);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great 👍🏽

Comment thread test/adagrams.test.js
const correct = { word: "XXXX", score: scoreWord("XXXX") };

throw "Complete test by adding an assertion";
expect(highestScoreFrom(words)).toEqual(correct);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice!

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