hr@patelsoft.com
BAN USER
- 0of 0 votes
AnswersExplain Closures in JavaScript.
- hr@patelsoft.com in India| Report Duplicate | Flag | PURGE
patel soft technologies IT PRODUCTS AND SERVICES JavaScript - 0of 0 votes
AnswersDifference between "==" and "===" operators?
- hr@patelsoft.com in India| Report Duplicate | Flag | PURGE
patel soft technologies IT PRODUCTS AND SERVICES JavaScript - 0of 0 votes
AnswerWhat will the following code output
- hr@patelsoft.com in India
var hero = {
_name: 'John Doe',
getSecretIdentity: function (){
return this._name;
}
};
var stoleSecretIdentity = hero.getSecretIdentity;
console.log(stoleSecretIdentity());
console.log(hero.getSecretIdentity());| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
AnswersWhat will the code below output to the console
- hr@patelsoft.com in India
var arr1 = "john".split('');
var arr2 = arr1.reverse();
var arr3 = "jones".split('');
arr2.push(arr3);
console.log("array 1: length=" + arr1.length + " last=" + arr1.slice(-1));
console.log("array 2: length=" + arr2.length + " last=" + arr2.slice(-1));| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
AnswersWhat is the output of the following code?
- hr@patelsoft.com in India
var length = 10;
function fn() {
console.log(this.length);
}
var obj = {
length: 5,
method: function(fn) {
fn();
arguments[0]();
}
};
obj.method(fn, 1);| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
AnswersWhat is the output of below code.
- hr@patelsoft.com in India
function checkType(num = 1) {
console.log(typeof num);
}
checkType();
checkType(undefined);
checkType('');
checkType(null);| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
AnswersWhat is the output of below code
- hr@patelsoft.com in India
function delay() {
return new Promise(resolve => setTimeout(resolve, 2000));
}
async function delayedLog(item) {
await delay();
console.log(item);
}
async function process(array) {
array.forEach(async (item) => {
await delayedLog(item);
});
console.log('Process completed!');
}
process([1, 2, 3, 5]);| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer - 0of 0 votes
AnswersWhat are asynchronous thunks
- hr@patelsoft.com in India| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
AnswersDoes JavaScript supports namespace
- hr@patelsoft.com in India| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript
Repharrietmritter, Tech Lead at Computer Associates
Hi! I am Harriet. I am working with a cyber security system. My site is www.hackerslist.co . You can ...