IntScription()

Devlog - 2025-12-03

πŸš€ What I Did

🧠 What I Learned

typeof true   // "boolean"
typeof false  // "boolean"

Boolean(10)      // true
Boolean(0)       // false
Boolean("hi")    // true
Boolean("")      // false
Boolean(null)    // false
Boolean(true)    // true

Class

Use Case Better Choice
Object blueprints βœ… class
Utilities / helpers βœ… function
Modern projects βœ… class
Legacy code βœ… function
class Car {
  constructor(name, speed) {
    this.name = name;
    this.speed = speed;
  }
}

const car1 = new Car("BMW", 120);
const car2 = new Car("Audi", 150);
Use Case Use Class?
Many similar objects βœ…
Game characters βœ…
API models βœ…
Data structures βœ…
One small object ❌
Simple helper function ❌

import anyName from './module.js';

πŸ”₯ What’s Next


← Previous Next β†’