Coding Omega
74 subscribers
8 photos
23 files
69 links
In this telegram channel you will get
• source code
• useful links
• quizzes
• pdf

So what are you thinking JOIN US NOW!
Download Telegram
JavaScript Interview Question

Q. What is a prototype chain?

Ans. Prototype chaining is used to build new types of objects based on existing ones. It is similar to inheritance in a class based language.

The prototype on object instance is available through
Object.getPrototypeOf(object)
or
proto
property whereas prototype on constructors function is available through
Object.prototype
.
JavaScript Interview Question

Q. What is the significance, and what are the benefits, of including 'use strict' at the beginning of a JavaScript source file?

Ans. The short and most important answer here is that
use strict

is a way to voluntarily enforce stricter parsing and error handling on your JavaScript code at runtime. Code errors that would otherwise have been ignored or would have failed silently will now generate errors or throw exceptions. In general, it is a good practice.

Some of the key benefits of strict mode include:
- Makes debugging easier.
- Prevents accidental globals.
- Eliminates
this

coercion.
- Disallows duplicate parameter values.
- Makes eval() safer.
- Throws error on invalid usage of
delete

.

Share with your mates.
Wishing you all a very happy new year 🎉
JavaScript Interview Question

Q. What are lambda or arrow functions?

Ans. An arrow function is a shorter syntax for a function expression and does not have its own this, arguments, super, or new.target. These functions are best suited for non-method functions, and they cannot be used as constructors.
Forwarded from Coding Omega
Guess the output!
var a;
if(x=1) console.log("1"); else console.log("0");
Anonymous Quiz
45%
0
40%
1
8%
01
8%
10
Keyboard shortcuts
_storage_emulated_0_whatsapp_Media_WhatsApp_Documents_CONVERTEDshortcuts.pdf
23.5 KB
_storage_emulated_0_whatsapp_Media_WhatsApp Documents_CONVERTEDshortcuts.pdf
https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html
All the article I share here are part of web development, so make sure to read them.
https://launchschool.com/books

They have great practical books