#245 Javascript Interview Questions by Frontend Master || #frontendmaster #javascript #frontend

preview_player
Показать описание
Javascript Interview Questions

Рекомендации по теме
Комментарии
Автор

Sir, yha
The count function is called using data[0]("Hey!");. Since the function is called as a method of an array element, the this keyword inside the function will refer to that array element, which is the count function itself.
Inside the count function, this.length will evaluate to the length of the count function, which is 0 (the number of arguments passed to the function).

deepanshsingh
Автор

how can we add a fucntion into array, a function can be called or declared. it's not a string or int or any other datatype.

dakshchandore
Автор

Please use english subtitles requested bro😢

yogeshsekar
Автор

Day 1 million of telling, javascript is most ducked up language in whole universe

pythondjango
Автор

var ln = 20
function Count(){
console.log(this.ln);
}
const data = [Count, 'A', 0]
data[0]('Hii!')




Now output is "undefined"


Explain where did I make mistake?

ajiteshmishra
Автор

I wouldn't hire that guy who writes such code.

saritavarshney
welcome to shbcf.ru