Skip to content

Instantly share code, notes, and snippets.

@ross-u
ross-u / README.md
Last active February 13, 2024 23:41
Git Basics - Cheat Sheet

Git Basics

Git commands - Cheat Sheet


@ross-u
ross-u / README.md
Last active October 13, 2020 13:32
JavaScript Introduction

JavaScript Introduction

What is JavaScript

  • JavaScript is a lightweight compiled programming language with the first-class functions.

  • JavaScript was created to run in the browser (mostly used for the Web), however it is also used in non-browser environments: Node.js (server side) and Electron (desktop applications).

@ross-u
ross-u / README.md
Last active February 13, 2024 23:41
JS | Conditionals and Loops - 0 to 30 Exercise

JS | Conditionals and Loops

0 to 30 - Exercise

Let’s do a quick exercise to put into practice the new stuff we have just learned about the conditionals and loops.


Task 1 - Create a script that counts from 0 to 30.

@ross-u
ross-u / README.md
Last active February 13, 2024 23:41

JS | Conditionals and Loops

Custom "Hello World"! - Exercise

Let’s write an improved version of the ‘Hello, world!’ program. Let’s ask the user in which language they want to see the message. You must have, at least, three different languages.

  • If the user wants the message in Spanish, you have to log in the console “Hola, mundo!”.
  • If the user wants the message in French, you have to log in the console “Bonjour tout le monde”.
  • Finally, if we don’t have the indicated language, we will show “Hello, world!”.
@ross-u
ross-u / README.md
Last active February 13, 2024 23:41
JS - Data types Strings - String Cardio - Exercise

JS | Data Types - Strings

Exercise - String Carido 💪


@ross-u
ross-u / README.md
Last active February 13, 2024 23:44
JS | Data types Numbers - Math warm up - Exercise

JS | Data types Numbers

Math warm up - Exercise


img

JS | Conditionals

Even/Odd - Exercise

Let’s write a for loop that will iterate from 0 to 20. For each iteration, it will check if the current number is even or odd, and print that on the screen. You will need the modulo (remainder) operator for this exercise. Make sure that number 0 is not printed.

@ross-u
ross-u / README.md
Last active May 13, 2021 10:31
JS | Functions - Cheat sheet

JS | Functions - Cheat sheet


Function expression

@ross-u
ross-u / README.md
Last active March 5, 2024 18:59
JS | Functions - Syntax Exercise

JS | Functions


Syntax - Exercise

Let's practice the function syntax:


@ross-u
ross-u / README.md
Last active January 16, 2021 13:24
JS | Arrays - Employees - Exercise

JS | Arrays

Arrays | Employees - Exercise