Skip to content

test #46

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

Closed
Closed

test #46

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions fundamentals.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,44 @@

// #1: Create an array of strings called `foods` that contains three foods.
// Type your solution immediately below this line:
var foods = ['hamburger', 'subs','hoogie']
//in this I listed 3 foods



// #2: Access the last item in the array and assign to a variable called `last`.
// Type your solution immediately below this line:
//from here I want to assign 'hoogie' as the last food item

var hoogie = 'last'



// #3: Create an empty array called `favoriteFoods`.
// Type your solution immediately below this line:


var favoriteFoods = ['','','','']
//this what I assume is what I am supposed to be doing
// wasn't too sure about

// #4: Create a `for` loop that adds each string in `foods` to `favoriteFoods`.
// Type your solution immediately below this line:

// here at this point I am actaully lost
// can't conceptualize this or the loop


// #5: Create an object literal called `instructor` that contains three key-value pairs.
// Type your solution immediately below this line:
var instructor = {
class: WDI,
subject: js,
style: comedic
}
//I think this is what I was supposed to do?



// #6: Add a `has-office-hours` (spelled exactly) property to `instructor` by accessing
// it (do not change the original object you typed above) and assigning it
// a boolean value.
// Type your solution immediately below this line:
//I am not 100% what to do on this
11 changes: 8 additions & 3 deletions hof.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@ var people = [
// person in the `people` array. Assign the returned array to a variable
// called `peopleNames`.
// Type your solution immediately below this line:



var peopleNames=[ "Layla","Keanu","Jasmine"]
function peopleNames(){
return people
}
//so I assumed this is how the array and return is supposed to be
//I am not too sure if this is the right way of doing this
// I tried out this code and it was failing
//I think I have to make an array or something for each properity for'people
// #2: Use the `filter` array method to create a new, filtered array containing only
// persons from the `people` array who know multiple languages. Assign the returned array
// to a variable called `polyglotPeople`.
Expand Down
7 changes: 7 additions & 0 deletions oojs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
// - a `songs` property that is an empty array not determined by input (not passed into the constructor)
// - an `addSong` method that adds a song (string) to the `songs` array
// Type your solution immediately below this line:
// I am confused, am I being asked to make something ooj related or an array?
var = Playlist {
title:"Kiss me, Kiss me, Kiss me ","Adrenaline", "Sunbather",
songs: "if only we could sleep tonight", "Fireal","dreamhouse",



}



Expand Down