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

Skill Sharpening Project by Diandre, Jennifer and Vandhana #264

Open
wants to merge 63 commits into
base: main
Choose a base branch
from

Conversation

Vandhana-Mohan
Copy link

No description provided.


function rangeEveryOther(min, max) { // return odd numbers
let newrangeEveryOther = []
for(let i = min; i <= max; i+=2){

Choose a reason for hiding this comment

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

nice job using the reassignment operator to increase by 2!

@@ -171,7 +211,21 @@ function getFullAddress(person) {}
numbers: [7185550921, 7185558611],
};
*/
function getFlatObject(person) {}
function getFlatObject(person) {
const Diandre = {

Choose a reason for hiding this comment

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

This isn't entirely hardcoded but there is a way more dynamic way to create the flat object. How can you use a for in loop to dynamically create the flat object?

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.

5 participants