Kuby Block

Blog about programming, tech, society and more.

Posts

  • Differences of variable declarations in javascript

    Variable declaration ways: Along with the developer of javascript each year, the variable declaration has also made new improvements. var : the traditional variable declaration. let : the variable declaration from ES5. const : the variable declaration from ES5, immutable value. No keyword declaration. Difference between var and let: Declaring variables with var is a fairly arbitrary ...

  • Let's talk

    Implement an discussion In a room, there are several people - Person. Each person has some attributes and stands next to others, in a coutinuous row: class Person { #name = ""; #gender = "M"; #age = 0; #messages = []; #nextPerson = null; constructor({ name, gender, age, messages }) { this.#name = name; this.#gender = gender; this.#age = age; this.#messages = mess...

subscribe via RSS