Skip to content

marc25219/javascript_basics

Repository files navigation

Project logo

Javascript - Basic Course


As part of my learning journey, I have completed and uploaded several exercises to this repository from an introductory Javascript course. The main purpose is to organize my notes and manage them more efficiently. Additionally, it serves as a place to showcase my work, crafted with dedication, in case it piques someone's interest.

📝 Table of Contents

  • 01.Introduction
  • 02.Operators
    • 1.Arithmetic: Basic operators: Addition, subtraction, division, multiplication, and power. Also, Increment and decrement operations (PRE-POST).
    • 2.Comparison: Comparison (difference between == and ===)
    • 3.Logical: Logical operators : AND, OR
  • 03.Conditionals
    • 1.If-else: IF-ELSE : Example selecting the day of the week
    • 2.Switch-case: SWITCH-CASE : Example selecting the day of the week
    • 3.Ternary: Ternary operation : Example using a VIP-MEMBER example.
  • 04.Functions
  • 05.Classes
    • 1.Old-mode: Create an Inventory Class : Example using the old mode (Inventory.prototype.method)
    • 2.New-mode: Create an Inventory Class : Example using the new mode (Object.method)
  • 06.Loops
    • 1.While: While loop : Example of an increment 0 to 10
    • 2.Do-while: Do-While loop : Example of an increment 0 to 10
    • 3.For: For loop : Example of an increment 0 to 10
    • 4.Good-bad-performance: Loop time comparison : Example of how to reduce the access time of a bucle.
    • 5.ForEach: forEach loop : It iterates all array items [normal, arrow function]
    • 6.ForEach-object: forEach loop : It iterates the object attributtes [normal, arrow function]
  • 07.Core_classes
    • 1.Object: It manages objects (access, modify, comparison, optional chaining, destructuring, etc)
    • 2.Number: Number class : Examples of the types, declaration, conversions and Math class.
    • 3.Array: Array class : Examples of the Declaration, functions (length, sort, pop, push, add, reverse, map, filter and slice)
    • 4.String: String class : Examples of the Declaration, functions (charCodeAt, indexOf, subtring) and conversions.
  • 08.Arrays
    • 1.Find: Array find() : Examples using the find() function with an objects array.
    • 2.Some: Array some() : Examples using the some() function with an objects array.
    • 3.Every: Array every() : Examples using the every() function with an objects array.
    • 4.Map: Array map() : Examples using the map() function with an objects array.
    • 5.Filter: Array filter() : Examples using the filter() function with an objects array.
    • 6.Reduce: Array reduce() : Examples using the reduce() function with an objects array.
    • 7.Object-TO-Array: Object to array : Using Object.keys(), Object.values() and Object.entries()
  • 09.Closures
    • 1.Closure: Example 1: Counter (increment, decrement and value)
    • 2.Closure: Example 2: Sale (getAmount, updateTotal)
    • 3.Closure: Example 3: Addition
  • 10.Async

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published