Golang Tutorial
Learn Golang tutorials with examples

January 1, 0001 · 1 min read
Optional Chaining is a feature implemented in Latest javascript. Let’s see what is the problem solve with this feature. For example, An object contains following properties. let employee = { "id":1, "name":"abc" "role" : { "id": 1, "name":"Admin" } } An object contains plain properties as well as sub childs(roles). Let’s find the role id for an employee. let roleId = employee.role.id console.log(roleId) // Prints 1 The above code works and prints role id if employee, and role objects are not null....
Recent posts
Puppeteer Login Test example How to convert Double to Integer or Integer to double in Dart| Flutter By Example Best ways to fix 504 gateway time out in nodejs Applications Fix for Error No configuration provided for scss Multiple ways to List containers in a Docker with examples