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
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css"/>
<script src="index.js"></script>

<title>Console Practice</title>
</head>
<body>
Expand All @@ -17,5 +17,6 @@ <h3>This button just returns a greeting in the console below</h3>
<input type="submit" value="Submit" onclick="" id="submit-button">
</form>
</section>
<script src="index.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ window.onload = () => {
const sayHello = () => {
return "Hello!"
}

console.log(sayHello())


// 3 - In the Chrome Console type out the name of each of these variables
Expand All @@ -35,7 +35,7 @@ const object1 = {
}

// 3.5 - Can you add statements below to log to the console each of the variables above?

console.log(arr1,num1,name1,object1)

// This variable will hold text values for us
let inputFieldValue = ""
Expand Down