Skip to content

Commit f2953bc

Browse files
committed
made some progress
1 parent ab2cb26 commit f2953bc

File tree

12 files changed

+6678
-4
lines changed

12 files changed

+6678
-4
lines changed

.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": [
3+
"wesbos"
4+
]
5+
}
6+
//https://github.com/wesbos/eslint-config-wesbos to tweak settings
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
const people = [
2+
{ name: 'Wes', cool: true, country: 'Canada' },
3+
{ name: 'Scott', cool: true, country: 'Merica' },
4+
{ name: 'Snickers', cool: false, country: 'Dog Country' },
5+
];
6+
7+
people.forEach((person, index) => {
8+
console.log(person.name);
9+
});
10+
11+
// Console Methods
12+
13+
// Callstack
14+
15+
// Grabbing Elements
16+
17+
// Breakpoints
18+
19+
// Scope
20+
21+
// Network Requests
22+
23+
// Break On Attribute
24+
25+
// Some Setup Code
26+
27+
function doctorize(name) {
28+
console.count('running Doctorize');
29+
return `Dr. ${name}`;
30+
}
31+
32+
function greet(name) {
33+
doesntExist();
34+
return `Hello ${name}`;
35+
}
36+
37+
function go() {
38+
const name = doctorize(greet('Wes'));
39+
console.log(name);
40+
}
41+
42+
const button = document.querySelector('.bigger');
43+
button.addEventListener('click', (e) => {
44+
const newFontSize =
45+
parseFloat(getComputedStyle(e.currentTarget).fontSize) + 1;
46+
e.currentTarget.style.fontSize = `${newFontSize}px`;
47+
});
48+
49+
// A Dad joke fetch
50+
async function fetchDadJoke() {
51+
const res = await fetch('https://icanhazdadjoke.com/', {
52+
headers: {
53+
Accept: 'text/plain',
54+
},
55+
});
56+
const joke = await res.text();
57+
console.log(joke);
58+
return joke;
59+
}

0 commit comments

Comments
 (0)