Skip to content

Latest commit

 

History

History
70 lines (54 loc) · 2.96 KB

File metadata and controls

70 lines (54 loc) · 2.96 KB

JavaScript Learning Journey

A structured collection of JavaScript notes, exercises, and homework — built while learning JS from the ground up. Covers core language concepts from variables to modern ES6+ features.

Topics covered

  • Variables: var, let, const and naming conventions
  • Primitive data types and type conversion
  • String methods and template literals
  • Math operators and the Math object
  • Comparison and logical operators
  • Conditionals: if/else, switch
  • Loops: for, while, do-while, for-of, for-in, nested loops
  • Functions: declarations, expressions, arrow functions
  • Predicate functions and ternary operators
  • Arrays and nested arrays
  • Objects: properties, methods, iteration
  • Array methods: map, filter, reduce, forEach, find, sort, and more
  • ES6+: destructuring, spread/rest, optional chaining, nullish coalescing

File structure

Lectures

File Topics
Lecture1.js Variables, data types, typeof, naming conventions
Lecture2.js String methods, operators, type conversion, conditionals
Lecture3.js Switch, arrays, for loops
Lecture4.js Objects: properties, methods, spread, Object.keys/values/entries
Lecture5.js Array methods: map, filter, reduce, find, sort, and more
Lecture6.js ES6+: destructuring, spread/rest, optional chaining, nullish coalescing

Reference / Practice

File Topics
functions1.js Arrow functions, predicates, ternary operators, string utilities
functions2.js Function declarations vs. expressions vs. arrow functions
loops.js while, do-while, for-of, for-in, nested loops, array mutations
mathOperators.js Arithmetic operators and the Math object
mathLogicTest.js Math and logic expression exercises

Homework

File Description
homework1.js Variables, data types, typeof
homework2.js Conditionals: vacation check, calculator, snail problem, BMI, ticket pricing
homework2.html Browser interaction using prompt() — vending machine
homework3.js Switch calculator, loops, bracket matcher, cipher decoder, CodeWars katas
homework4.js Nested loops: rhombus, Christmas tree, triangle pattern drawing
kata_8.js CodeWars 8kyu katas: multiply, triangle angle, XOR, move in game

How to run

Make sure you have Node.js installed, then run any .js file:

node Lecture1.js
node functions1.js
node homework3.js

For homework2.html, open it in a browser — or use the Live Server VS Code extension.

Tech

  • JavaScript (ES6+)
  • Node.js