jaeyeonjung.hashnode.devSpread Operator & Rest OperatorSpread Operator we spread the original array or object without changing it // example 1 : object const animal = { status: 'healthy' } const dog = { ...animal, bark: true } console.log(animal) // {status: 'healthy'} ...Jul 15, 2024·1 min read
jaeyeonjung.hashnode.devMap ObjectES6 Iterable like an array It consists of key-value pairs like an object However, unlike objects, maps can have any value as a key (Objects can only have strings or symbols as a key) use methods to insert & delete values let jane = new Map(); ...Jul 15, 2024·2 min read
jaeyeonjung.hashnode.devLoop : for in & for offor ...in loop Can only access 'key' of an object Repeat all iterable properties of an object var obj = { "a": 1, "b": 2, "c": 3 } for (var prop in obj) { console.log(`${prop}: ${obj[prop]}`) // a: 1 // b:...Jul 15, 2024·1 min read
jaeyeonjung.hashnode.devCoursera : Introduction to Front-End Development (by. Meta)What I've learned Web page : A document that displays images, texts, videos and other content in the web browser Website : A collection of webpages that link together Web server : A special type of computer that allows computers to make requests ...Jul 8, 2024·2 min read
jaeyeonjung.hashnode.devFunction Expression vs. Function DeclarationFormat // Function Expression const expression = function () { console.log('this is a function expression); } // Function Declaration function declaration () { console.log('this is a function declaration); } Difference Name A function exp...Nov 10, 2023·1 min read