The simplest and modern to avoid an error while displaying fetched data in JavascriptJun 3, 2022·1 min read
Javascript E𝗺𝗽𝘁𝘆 𝗼𝗯𝗷𝗲𝗰𝘁 𝗮𝘀 𝗮 𝗳𝗮𝗹𝗹𝗯𝗮𝗰𝗸 𝘄𝗵𝗶𝗹𝗲 𝗱𝗲𝘀𝘁𝗿𝘂𝗰𝘁𝘂𝗿𝗶𝗻𝗴As explained in one of my posts in the Javascript series, you can use the optional chaining operator to simplify and avoid breaking code So the below code: 𝘤𝘰𝘯𝘴𝘵 𝘶𝘴𝘦𝘳 = { 𝘯𝘢𝘮𝘦: '𝘋𝘢𝘷𝘪𝘥' }; 𝘤𝘰𝘯𝘴𝘵 𝘴𝘵𝘳𝘦𝘦𝘵𝘕𝘢𝘮𝘦 = 𝘶𝘴𝘦𝘳....Jun 7, 2022·1 min read