Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HW 2 - Jibran Khan #35

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jibran888
Copy link

Completed assignment for HW #2 and solved most of lab 1. The parts of lab 1 and lab 2 that were not solved here, I would like to review in OH. I will attempt lab 2 part 2 (the bike stations) in Week 3 pull request as the lab is replicated there.

Thanks!

…understanding how to do the assignment, but wanted to get something uploaded online so there's something there for now. will update soon!
@@ -61,7 +80,10 @@ and if it is not, it prints to the console, "TRY WITH STRINGS"
===================== */


var trump = function() {};
var trump = function isString(input) {
if String.isString(input); {return input.capitalize};
Copy link
Member

Choose a reason for hiding this comment

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

I know you said you're not done, but I am just looking through now anyhow. Happy to chat in office hours! but wanted to start the review.

image

Copy link
Member

Choose a reason for hiding this comment

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

(capitalize as far as I know it not a thing in javascript)

@@ -62,11 +62,30 @@

===================== */

var jsonToCsv = function(json) { console.log(json); };
var jsonToCsv = function(json) {
Copy link
Member

Choose a reason for hiding this comment

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

This output of this task is "csv-style" array of arrays that turns:

[{'first': 1, 'second': 44}, {'first': 2, 'second': 12}]
into

[['first','second'],[1, 44],[2, 12]]

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