検索結果: "#JavaScriptInterviewQuestion"

8 件の結果
Abdul Qadir
Abdul Qadir@A_Qadir·
#javascriptInterviewQuestion What is a higher order function? A higher-order function is a function that accepts another function as an argument or returns a function as a return value or both.
Abdul Qadir tweet media
English
0
0
3
90
Abdul Qadir
Abdul Qadir@A_Qadir·
#javascriptInterviewQuestion What are classes in ES6? In ES6, Javascript classes are primarily syntactic sugar over JavaScript’s existing prototype-based inheritance. For example, the prototype based inheritance written in function expression as below, Whereas ES6 classes can be defined as an alternative
Abdul Qadir tweet mediaAbdul Qadir tweet media
English
0
0
4
74
Abdul Qadir
Abdul Qadir@A_Qadir·
#javascriptInterviewQuestion What are closures? A closure is the combination of a function and the lexical environment within which that function was declared. i.e, It is an inner function that has access to the outer or enclosing function’s variables. The closure has three scope chains 1) Own scope where variables defined between its curly brackets 2) Outer function’s variables 3) Global variables Let's take an example of closure concept, As per the above code, the inner function(i.e, greetingInfo) has access to the variables in the outer function scope(i.e, Welcome) even after the outer function has returned.
Abdul Qadir tweet media
English
0
1
4
97