Skip to content

Learning JavaScript and node/npm ecosystem via practical advent of code challenges.

Notifications You must be signed in to change notification settings

mansenfranzen/advent-of-code-2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2023

This repository contains solutions for the Advent of Code 2023 as a daily practice to learn JavaScript and its ecosystem (node.js, npm, eslint) while testing github Copilot for the first time.

Comparison to Python

  • Value (Python) vs reference (JS) equality tests
  • No builtin support for doc strings in JS
  • Lack of builtin functionality such as range, or set operations like difference, intersection in JS
  • Inheritance via classes (Python) vs prototypes (JS)
  • Seeminlgy error prone implicit type conversions in JS:
    1 + 2 + " foo" // => "3 foo"
    1 + (2 + " foo") // => "12 foo"
    1 + {} // => "1[object Object]"
  • undefined everywhere instead raising proper exceptions in JS (e.g. access to non existing property)
  • missing type hints in JS (though available in TypeScript)
  • convenient getter syntax in JS via get instead of using @property in Python

About

Learning JavaScript and node/npm ecosystem via practical advent of code challenges.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published