Today in 𝗗𝗮𝘁𝗮 𝗦𝘁𝗿𝘂𝗰𝘁𝘂𝗿𝗲𝘀 𝗮𝗻𝗱 𝗔𝗹𝗴𝗼𝗿𝗶𝘁𝗵𝗺𝘀 journey using JavaScript, I studied 𝐌𝐚𝐩 data structures and implemented its different methods to clear the concepts and understanding. Here is a quick summary from me.
#js#datastructures#jsdev#javascript
𝗦𝗲𝘁 is just like an array, the only difference is you can't add 𝘥𝘶𝘱𝘭𝘪𝘤𝘢𝘵𝘦 values. We iterate over a Set using 𝙛𝙤𝙧𝙀𝙖𝙘𝙝() method or 𝙛𝙤𝙧 𝙤𝙛 𝙡𝙤𝙤𝙥. The other methods we can use with a Set are 𝙖𝙙𝙙(), 𝙙𝙚𝙡𝙚𝙩𝙚(), 𝙝𝙖𝙨(), 𝙘𝙡𝙚𝙖𝙧(), and 𝙨𝙞𝙯𝙚.
Hey TwitterFam,
Today in 𝗗𝗮𝘁𝗮 𝗦𝘁𝗿𝘂𝗰𝘁𝘂𝗿𝗲𝘀 𝗮𝗻𝗱 𝗔𝗹𝗴𝗼𝗿𝗶𝘁𝗵𝗺𝘀 journey using JavaScript, I studied 𝐎𝐛𝐣𝐞𝐜𝐭 𝐚𝐧𝐝 𝐒𝐞𝐭 data structures and implemented their different methods to clear my understanding. Here is a quick summary from me.
𝙊𝙗𝙟𝙚𝙘𝙩.𝙨𝙚𝙖𝙡() 𝙖𝙣𝙙 𝙊𝙗𝙟𝙚𝙘𝙩.𝙛𝙧𝙚𝙚𝙯𝙚(): This method, seal the Object and you can modify the Object but can't add or remove properties. In freeze, you can't even modify the existing properties.
𝗡𝗢𝗧𝗘: this keyword inside an object refers to the object.
Looking to improve your #aws practical skills and do well in interviews? I have NINE FREE, video enhanced mini projects. Details below in thread - 🥳Please retweet to spread the word 🥳
https://t.co/C1oq0m51gy
https://t.co/qEmShhRg8T
#100daysofcloud#labEveryday#100DaysOfCode