-
Notifications
You must be signed in to change notification settings - Fork 33
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
base: master
Are you sure you want to change the base?
Conversation
…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}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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]]
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!