Skip to content

Instantly share code, notes, and snippets.

View kylecoberly's full-sized avatar

Kyle Coberly kylecoberly

View GitHub Profile

Intro to React

Reading

Exercises

@kylecoberly
kylecoberly / caps-lock-to-control.reg
Created November 18, 2022 00:28
Remap caps lock to control in Windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
1.
> Using JavaScript, write a function that accepts a string and logs it.
2.
> Using `.filter()` and `.forEach()`, add the necessary JavaScript to print out only the 2 even numbers, such as:
```
2

Using JavaScript, write a function that accepts two numbers and returns them multiplied together.

Using .map() and .forEach(), add the necessary JavaScript to print out each of the words with an ! appended to the end, such as:

One!

Using JavaScript, write a function that accepts a string and logs it.

Add the JavaScript code that iterates through each of these words using a for loop and concatenates them into a sentence. Don't forget to add spaces!

const words = ["The", "quick", "brown", "fox"]
1.
> Using JavaScript, write a function that accepts a string and logs it.
2.
> Add the JavaScript code that iterates through each of these words using a `for` loop and concatenates them into a sentence. Don't forget to add spaces!
```js
const words = ["The", "quick", "brown", "fox"]

Destructuring

Taking out elements from an array or properties from an object and saves them in new variables.

const someObject = {
  someKey: "Some value",
  anotherKey: Another value",
}

Destructuring

Promise

Spreading

Template Literal

Ternary Expression

Hi, I'm just some code!