We have compiled a list of the most common interview questions you may face at your next JavaScript interview to help you. A quick review of them will refresh your knowledge of the language and give you confidence that you can supply the correct answers. 53 frequently asked JavaScript interview...
Interview questions 1、ES6 和 CommonJS 对循环引用的处理有什么不同(猿辅导) 2、ES6 有哪些新特性,说一下你用过的 ES6 的新特性(百度、快手、字节、知乎、小米) 3、如何用 ES5 实现 ES6 的 class 的 static 和 private(百度) 4、 map 的返回值(网易) 5、 map 记录出现次数(小米) 6、Map 和 weak...
Common Memory Leaks and How to Avoid Them Memory leaks occur when your application holds onto memory it no longer needs. Let’s look at some patterns that tend to create memory leaks, so you’ll know to avoid them: The Global Variable Trap ...
This is one of the most common errors in JavaScript. In strict mode, attempting to do so throws an error. Eliminates this coercion. Without strict mode, a reference to a this value of null or undefined is automatically coerced to the global. This can cause many headfakes and pull-out-...
Questions Hands On Coding Questions Do Your Homework Your Resume is the Key the Job Application Process the Prelude the Interview Process Common Interview Mistakes Behavioral Interview Questions Salary Questions Your Turn to Ask Questions the Postlude Handling Offers THIS IS JUST AN "INTRODUCTORY SAMPLE...
Event delegation is the idea that something other than the target of an action resolves the event raised by that action. An example of event delegation would be having the document element handle the click action of a button. A fairly common occurrence, is to have a “ul” element handle ...
5.What do these two examples have in common? Short Answer: Both create potential memory leaks, especially in Internet Explorer. Example 1: varobj=document.getElementById('adiv');document.getElementById('adiv').ptr=obj; Long Answer:
CommonJS-Node.js AMD(异步模块定义)-浏览器 基本上,使用模块的方式很简单,import用于从另一个文件中获取功能或几个功能或值,同时export用于从文件中公开功能或几个功能或值。 导出 使用ES5 (CommonJS) 使用ES6 模块 在另一个文件中导入函数 // 使用 ES5 (CommonJS) - index.jsconsthelpers=require('./helpe...
Event delegation is the idea that something other than the target of an action resolves the event raised by that action. An example of event delegation would be having the document element handle the click action of a button. A fairly common occurrence, is to have a “ul” element handle ...
"Seven common methods of js array deduplication" The filter() method creates a new array with elements in the new array by checking all elements in the specified array that meet the conditions. item is the value of the current element, and index is the index value of the current element....