Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SOliv1/39beff2968af02c1a2434f2274490ed4 to your computer and use it in GitHub Desktop.
Save SOliv1/39beff2968af02c1a2434f2274490ed4 to your computer and use it in GitHub Desktop.
Java Script Excercises in CodeAcadamy in association with Career Switch
@SOliv1
Copy link
Author

SOliv1 commented Nov 5, 2021

Convert To Baby

Convert to Baby Code

Using decrement and increment

What does i++ and i-- mean?
decrement and increment

@SOliv1
Copy link
Author

SOliv1 commented Nov 5, 2021

Fix the broken code

Fix the Broken Code

In the above exercise the there was a scope error. Please read this excellent explanation relating to the exercise on Code Academy Forum
Also checkout What is Scope
[ ] smallestPowerOfTwo() function was not working to get the desired results, because we needed to add a new variable (J) to return the desired results of the smallest number two which is greater than the current element before using .push() to add it to results.

@SOliv1
Copy link
Author

SOliv1 commented Nov 8, 2021

Sort Years

sort years

sortYears() - takes in an array of years, and, uses the built-in .sort() method, returns that array with the years sorted in descending order.

We test our function when ready by passing in the years array or by making our own array of years!

@SOliv1
Copy link
Author

SOliv1 commented Nov 8, 2021

Just Cool Stuff

just cool stuff

just Cool Stuff - takes in two arrays of strings, and, uses the built-in .filter() method, returns an array with the items that are present in both arrays.

@SOliv1
Copy link
Author

SOliv1 commented Nov 9, 2021

Is the Dinner vegan

is dinner vegan

true or false

@SOliv1
Copy link
Author

SOliv1 commented Nov 9, 2021

Number Of Teeth

This exercise sorts the average number of teeth that species possesses (numTeeth) .

Number of Teeth

@SOliv1
Copy link
Author

SOliv1 commented Nov 11, 2021

Find My Keys

findMYKeys

Here is an array of strings which may or may not contain 'keys'. If the keys are in the array, our function should return the index at which they can be found. If they’re not in the array, our function should return -1.

@SOliv1
Copy link
Author

SOliv1 commented Nov 11, 2021

Dog Factory

dogFactory

Code Acadamy Forum Question:
Why are getters and setters important?
Answer
Getters and setters are important to use when we want to perform some operation on data before we view or save said data. Getters and setters are also important to use when we want to make sure we don’t override data unintentionally, by making that data accessible only through our getters and setters

@SOliv1
Copy link
Author

SOliv1 commented Nov 16, 2021

Lodash Library

# JAVASCRIPT SYNTAX, PART II

Lodash

@SOliv1
Copy link
Author

SOliv1 commented Nov 17, 2021

Credit Card Checker

Checks whether credit cards are valid or not.

Credit Card Checker

Screenshot (569)
)

credit card number generator

@SOliv1
Copy link
Author

SOliv1 commented Nov 21, 2021

#JavaScript Project

Mysterious Organism

Finally got this right - an interesting challenge!

@SOliv1
Copy link
Author

SOliv1 commented Nov 26, 2021

Message Mixer

Screenshot (578)
My code solution

Message Mixer

@SOliv1
Copy link
Author

SOliv1 commented Dec 1, 2021

Work Around Explorer

WorkAroundExplorer

What is it about

WorkAround is a research organization providing data on salary trends in the tech industry. Open up salaryData.js to see the data they have collected. You’ll notice that they have also created a few functions for filtering that data to get subsets of data by role and by company.

WorkAround wants to release a new web application called WorkAround Explorer to make their data more easily viewable.
This web app should allow users to choose specific roles and companies in the tech industry to see the following information:

  1. The salary for the chosen role at the chosen company.
  2. The industry average for the chosen role.
  3. The average salary at the chosen company across all roles.
  4. The industry average salary across all roles and all companies.

@SOliv1
Copy link
Author

SOliv1 commented Dec 15, 2021

Find My Hat

findhat.js

@SOliv1
Copy link
Author

SOliv1 commented Dec 17, 2021

##User Input Output Number Guess Game
inputOutput

@SOliv1
Copy link
Author

SOliv1 commented Dec 18, 2021

Create my own port with node

createport

@SOliv1
Copy link
Author

SOliv1 commented Feb 27, 2022

bytes of china

Building and designing a database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment