chenmh0901 / tscoding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tscoding

Note

Date: 2024-8-21

  • Hash Map
  • being used to use Set & Map in JavaScript
  • Set: a collection of unique values
  • Map: a collection of key-value pairs
  • remember use Math liberary like Math.floor() to get the integer part of a division

Date: 2024-8-23

  • 前置++和后置++的区别
  • 都会改变变量的值
  • nums[j]++ is the same as nums[j] = nums[j] + 1
  • first return nums[j] then do nums[j]++
  • ++nums[j] is the same as nums[j] = nums[j] + 1 then return nums[j]

About


Languages

Language:TypeScript 55.2%Language:JavaScript 44.8%