Open utterances-bot opened 3 years ago
Create — POST Read/Retrieve — GET Update — PUT/PATCH ( PATCH is to only update some of the object) Delete — DELETE
Be careful about array.push and array.concat, sometimes you really want is concat instead of push
const array1 = ['a', 'b', 'c'];
const array2 = ['d', 'e', 'f'];
const array3 = array1.concat(array2);
console.log(array3);
// expected output: Array ["a", "b", "c", "d", "e", "f"]
test local edit
Javascript | Hexo
My NotesMap objectThe map is special compare to the others . You cannot call JSON.springify in console.log to show the contents. You could use forEach of the map or use map.size to just show count of
https://iris2008.github.io/2020/12/16/Javascript/