Compare commits
No commits in common. "c38c66a446287921eb466c863c8b1136d23ecc78" and "c774c0be13d7379fca2042cf78a0283745c2573e" have entirely different histories.
c38c66a446
...
c774c0be13
|
@ -1,3 +0,0 @@
|
|||
# README
|
||||
|
||||
This is a practice repo following [JavaScript: Functions](https://app.pluralsight.com/course-player?clipId=bdda4158-f634-4866-ac1a-f536f948c3e1)
|
12
app.js
12
app.js
|
@ -1,12 +0,0 @@
|
|||
function setupCounter(val) {
|
||||
return function counter() {
|
||||
return val++;
|
||||
}
|
||||
}
|
||||
|
||||
let counter1 = setupCounter(0);
|
||||
console.log(counter1());
|
||||
console.log(counter1());
|
||||
let counter2 = setupCounter(10);
|
||||
console.log(counter2());
|
||||
console.log(counter2());
|
14
index.html
14
index.html
|
@ -1,14 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>JavaScript Demo</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>JavaScript Demo</h1>
|
||||
<script src="app.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in New Issue