Skip to content
Open
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
Empty file added css/style.css
Empty file.
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
<script src="js/app.js"></script>
</body>
</html>
61 changes: 61 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@


// Create an array that has an object in it.
// Log one of the properties of that object.
const object0 = [
{
name:'patrick'
}

];
console.log(object0[0]);

// Create an object that has a property that is an object.
// Log one of the properties of that inner object

const object = {
name: 'Greg'
}

{

}



console.log(object.name);
// Create an array that has an array as one of its elements.
// Log one of the elements of the inner array.

const object2 = [0,1,[3,4]];







console.log(object2[2]);

// Create an array that has a function
// as one of its elements. Call that function.

// Part2


// Create a function that returns an array.
// Log an element of the array.

function create () {
let apple = [2,3];
return create[1];

}

// console.log(create([1]));