diff --git a/.eslintrc b/.eslintrc index bb1bb14d8..09100e472 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,17 @@ { "extends": [ "wesbos" - ] + ], + "rules": { + "no-console": 0, + "prettier/prettier": [ + "error", + { + "trailingComma": "es5", + "singleQuote": true, + "printWidth": 120, + "tabWidth": 2 + } + ] + } } diff --git a/exercises/16 - Debugging/debugging-FINISHED.js b/exercises/16 - Debugging/debugging-FINISHED.js index f738241ef..ffa801f7a 100644 --- a/exercises/16 - Debugging/debugging-FINISHED.js +++ b/exercises/16 - Debugging/debugging-FINISHED.js @@ -3,6 +3,7 @@ const people = [ { name: 'Scott', cool: true, country: 'Merica' }, { name: 'Snickers', cool: false, country: 'Dog Country' }, ]; +console.table(people); /* Victor Mono */ // New Font! @@ -10,24 +11,6 @@ people.forEach((person, index) => { console.log(person.name); }); -// console.table(people); - -// Console Methods - -// Callstack, Stack Trace - -// Grabbing Elements - -// Breakpoints - -// Scope - -// Network Requests - -// Break On Attribute - -// Some Setup Code - function doALotOfStuff() { console.group('Doing some stuff'); console.log('Hey Im one'); @@ -37,7 +20,7 @@ function doALotOfStuff() { } function doctorize(name) { - // console.count(`running Doctorize for ${name}`); + console.count(`running Doctorize for ${name}`); return `Dr. ${name}`; } @@ -60,8 +43,7 @@ function bootstrap() { const button = document.querySelector('.bigger'); button.addEventListener('click', function(e) { - const newFontSize = - parseFloat(getComputedStyle(e.currentTarget).fontSize) + 1; + const newFontSize = parseFloat(getComputedStyle(e.currentTarget).fontSize) + 1; e.currentTarget.style.fontSize = `${newFontSize}px`; }); diff --git a/exercises/16 - Debugging/debugging-START.js b/exercises/16 - Debugging/debugging-START.js deleted file mode 100644 index 83a140798..000000000 --- a/exercises/16 - Debugging/debugging-START.js +++ /dev/null @@ -1,58 +0,0 @@ -const people = [ - { name: 'Wes', cool: true, country: 'Canada' }, - { name: 'Scott', cool: true, country: 'Merica' }, - { name: 'Snickers', cool: false, country: 'Dog Country' }, -]; - -people.forEach((person, index) => { - console.log(person.name); -}); - -// Console Methods - -// Callstack - -// Grabbing Elements - -// Breakpoints - -// Scope - -// Network Requests - -// Break On Attribute - -// Some Setup Code - -function doctorize(name) { - return `Dr. ${name}`; -} - -function greet(name) { - doesntExist(); - return `Hello ${name}`; -} - -function go() { - const name = doctorize(greet('Wes')); - console.log(name); -} - -const button = document.querySelector('.bigger'); -button.addEventListener('click', function(e) { - const newFontSize = - parseFloat(getComputedStyle(e.currentTarget).fontSize) + 1; - e.currentTarget.style.fontSize = `${newFontSize}px`; -}); - -// A Dad joke fetch -async function fetchDadJoke() { - const res = await fetch('https://icanhazdadjoke.com/', { - headers: { - Accept: 'text/plain', - }, - }); - const joke = await res.text(); - console.log(joke); - return joke; -} diff --git a/exercises/20 - The DOM/DOM-Cardio.html b/exercises/20 - The DOM/DOM-Cardio.html index 9849fb5b1..72848229c 100644 --- a/exercises/20 - The DOM/DOM-Cardio.html +++ b/exercises/20 - The DOM/DOM-Cardio.html @@ -6,6 +6,8 @@
Lorem ipsum dolor sit amet consectetur adipisicing elit. Commodi aliquam fuga? Expedita.
+Lorem ipsum dolor sit amet consectetur adipisicing elit. Nihil deleniti alias harum quod, ad distinctio. Obcaecati, facere soluta.
+They are HEIGHT and AGE years old. In Dog years this person would be AGEINDOGYEARS. That would be a tall dog!
//They are ${height} and ${age} years old. In Dog years this person would be ${age * + 7}. That would be a tall dog!
+