Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions之Javascript #25

Open
pengjielee opened this issue Jun 25, 2019 · 0 comments
Open

Questions之Javascript #25

pengjielee opened this issue Jun 25, 2019 · 0 comments

Comments

@pengjielee
Copy link
Owner

  • Explain event delegation.
译:解释事件委托。
js中的事件委托:
http://www.tuicool.com/articles/jQZj6zB
JavaScript事件委托的技术原理:
http://www.webhek.com/event-delegate/
jquery中的事件委托:
http://www.cnblogs.com/thinksasa/p/3941739.html
  • Explain how this works in JavaScript.
译:解释javascript中的this。
js中的this关键字详解:
http://www.jb51.net/article/41656.htm
  • Explain how prototypal inheritance works.
译:解释原型继承。
浅析Javascript原型继承:
http://blog.csdn.net/kittyjie/article/details/4380918
再谈Javascript原型继承:
http://segmentfault.com/a/1190000000766541
前端开发必须知道的JS(一) 原型和继承:
http://www.cnblogs.com/ljchow/archive/2010/06/08/1753526.html
JS 面向对象之继承 -- 原型链:
http://www.cnblogs.com/yangjinjin/archive/2013/02/01/2889368.html
  • What do you think of AMD vs CommonJS ?
译:你对AMD和CommonJs的看法?
什么是CommonJS?
http://www.cnblogs.com/fullhouse/archive/2011/07/15/2107416.html
浅析JS中的模块规范(CommonJS,AMD,CMD):
http://www.2cto.com/kf/201411/348276.html
关于CommonJS:
http://raychase.iteye.com/blog/1463617
CommonJS Modules/1.0 规范:
http://blog.jobbole.com/49290/
  • Explain why the following doesn't work as an IIFE: function foo(){ }();.
    What needs to be changed to properly make it an IIFE?
译:解释一下下面的立即执行方法为什么不工作?如何使它工作?
 JavaScript IIFE:
http://blog.csdn.net/ebw123/article/details/42428451
深入理解JavaScript系列(4):立即调用的函数表达式:
http://www.cnblogs.com/TomXu/archive/2011/12/31/2289423.html
JavaScript的IIFE(即时执行方法):
http://rensanning.iteye.com/blog/2080429
Javascript知识点:IIFE - 立即调用函数:
http://www.thinksaas.cn/group/topic/345843/
  • What's the difference between a variable that is: nullundefined or undeclared?
    How would you go about checking for any of these states?
译:null、undefined、undeclared的区别是什么?如何检测这三种状态?
 JavaScript null和undefined区别分析:
http://www.jb51.net/article/20396.htm
探索JavaScript中Null和Undefined的坑:
http://developer.51cto.com/art/201401/426966.htm
javascript中null和undefined判断和区别分析:
http://www.111cn.net/wy/js-ajax/42461.htm
JavaScript 中 undefined 与 undeclared 之间的区别是什么:
http://www.zhihu.com/question/19966545/answer/13501801
  • What is a closure, and how/why would you use one?
译:什么是闭包?如何使用?为什么要使用?
 深入理解js闭包:
http://www.jb51.net/article/24101.htm
Javascript闭包——懂不懂由你,反正我是懂了:
http://kb.cnblogs.com/page/110782/
学习Javascript闭包(Closure):
http://www.ruanyifeng.com/blog/2009/08/learning_javascript_closures.html
javascript 闭包详解:
http://www.php100.com/html/it/focus/2014/1113/7796.html
JavaScript 闭包究竟是什么:
http://www.cnblogs.com/dolphinX/archive/2012/09/29/2708763.html
理解 Javascript 的闭包:
http://www.oschina.net/question/28_41112
  • What's a typical use case for anonymous functions?
译:匿名函数的典型用例?
对JAVASCRIPT匿名函数的理解(透彻版):
http://www.cnblogs.com/chenxianbin89/archive/2010/01/28/1658392.html
JavaScript中的匿名函数及函数的闭包:
http://www.cnblogs.com/rainman/archive/2009/05/04/1448899.html
js中匿名函数的N种写法:
http://www.jb51.net/article/24759.htm
  • How do you organize your code? (module pattern, classical inheritance?)
译:你如何组织你的代码?(模块模式,类式继承?)
 如何组织你的javascript代码?
http://www.cnblogs.com/darkangle/archive/2010/08/23/1806365.html
如何组织大型JavaScript应用中的代码?
http://kb.cnblogs.com/page/176541/
JavaScript代码组织结构良好的5个特点[reuqire.js]
http://segmentfault.com/a/1190000002431855
  • What's the difference between host objects and native objects?
译:宿主对象与内置对象的区别是什么?
javascript中本地对象、内置对象和宿主对象:
http://blog.csdn.net/zzjiadw/article/details/6881114
Javascript内置对象、原生对象、宿主对象关系:
http://blog.csdn.net/foamflower/article/details/9165691
JavaScript 本地对象、内置对象、宿主对象:
http://xiaogai1010.blog.163.com/blog/static/137170308201252893248730/
javascript 对象,本地对象、内置对象和宿主对象:
http://blog.sina.com.cn/s/blog_7122daac0100qg0i.html
  • Difference between: function Person(){}, var person = Person(),and var person = new Person()?
JS的构造函数:
http://www.cnblogs.com/jikey/archive/2011/05/13/2045005.html
Javascript面向对象编程(二):构造函数的继承:
http://www.ruanyifeng.com/blog/2010/05/object-oriented_javascript_inheritance.html
js五种设计模式说明与示例:
http://www.51xuediannao.com/qd63/index.php/page-2-53-1.html
前端开发必须知道的JS(一) 原型和继承:
http://www.cnblogs.com/ljchow/archive/2010/06/08/1753526.html
  • What's the difference between .call and .apply?
 JavaScript中的apply()方法和call()方法使用介绍:
http://www.jb51.net/article/30883.htm
  • Explain Function.prototype.bind .
 理解 JavaScript 中的 Function.prototype.bind
http://blog.jobbole.com/58032/
JavaScript中的prototype.bind()方法介绍:
http://www.jb51.net/article/48729.htm
  • When would you use document.write()?
 js中document.write的那点事
http://www.cnblogs.com/dh616854836/articles/2140349.html
document.write()用法:
http://blog.csdn.net/youyedemeng/article/details/7925833
深入浅出JavaScript (五) 详解Document.write()方法:
http://blog.csdn.net/lilongsheng1125/article/details/8532828
  • What's the difference between feature detection, feature inference, and using the UA string?
 HTML5系列四(特征检测、Modernizr.js的相关介绍):
http://www.mamicode.com/info-detail-886035.html
 用于浏览器特征检测的JS框架:
http://www.woween.com/f2e/library/2013/03/19/js-framework-for-browser-feature-detection.html
  • Explain AJAX in as much detail as possible.
Ajax 完整教程:
http://www.cnblogs.com/Garden-blog/archive/2011/03/11/1981778.html
纯js Ajax 请求:
http://akhuting.iteye.com/blog/936492
  • Explain how JSONP works (and how it's not really AJAX).
jsonp详解:
http://www.cnblogs.com/lemontea/archive/2012/12/11/2812268.html
jsonp原理及使用:
http://www.jb51.net/article/42472.htm
jsonp详解:
http://www.cnblogs.com/yuwensong/archive/2013/05/28/3103064.html
JSONP跨域原理和jQuery.getJSON用法:
http://developer.51cto.com/art/201105/264791.htm
  • Have you ever used JavaScript templating?
    If so, what libraries have you used?
最简单的JavaScript模板引擎:
http://www.cnblogs.com/dolphinX/archive/2013/12/27/3489269.html
Juicer – 一个Javascript模板引擎的实现和优化:
http://url2.biz/bHZI
jquery作者John Resig编写的微模板引擎:JavaScript Micro-Templating:
http://blog.csdn.net/jyy_12/article/details/8494082
推荐五款流行的JavaScript模板引擎:
http://www.php100.com/html/program/javascript/2013/0922/6219.html
  • Explain "hoisting".
JavaScript中变量提升 Hoisting:
http://www.jb51.net/article/30719.htm
javascript变量声明提升(hoisting):
http://openwares.net/js/javascript_declaration_hoisting.html
javascript中变量声明提升(Hoisting)的理解:
http://hszy00232.blog.163.com/blog/static/43022753201131315817814/
JavaScript中变量提升------Hoisting:
http://www.cnblogs.com/damonlan/archive/2012/07/01/2553425.html
javascript变量声明提升(hoisting):
http://segmentfault.com/a/1190000002582759
  • Describe event bubbling.
Javascript 之 事件冒泡(Event Bubbling):
http://www.cnblogs.com/goyier/articles/1268709.html
js之事件冒泡和事件捕获详细介绍:
http://www.jb51.net/article/42492.htm
Js 冒泡事件阻止:
http://www.cnblogs.com/jams742003/archive/2009/08/29/1556187.html
  • What's the difference between an "attribute" and a "property"?
js中的attribute详解
http://mengzhixing999.blog.163.com/blog/static/22291559201071921625203/
JavaScript对象的property属性详解:
http://www.jb51.net/article/48594.htm
  • Why is extending built-in JavaScript objects not a good idea?
js内置对象:
http://www.jb51.net/article/27855.htm
monkey patching(即给内置对象扩展方法)是一种好的编程习惯吗?
http://segmentfault.com/q/1010000000095871
JavaScript原生对象及扩展:
http://segmentfault.com/a/1190000002634958
  • Difference between document load event and document ready event?
jQuery $(document).ready()和JavaScript onload事件:
http://www.cnblogs.com/mengdd/p/4276801.html
  • What is the difference between == and ===?
  • Explain the same-origin policy with regards to JavaScript.
  • Make this work : duplicate([1,2,3,4,5]); // [1,2,3,4,5,1,2,3,4,5]
  • Why is it called a Ternary expression, what does the word "Ternary" indicate?
  • What is "use strict";? what are the advantages and disadvantages to using it?
  • Create a for loop that iterates up to 100 while outputting "fizz" at multiples of 3, "buzz" at multiples of 5 and "fizzbuzz" at multiples of 3 and 5.
  • Why is it, in general, a good idea to leave the global scope of a website as-is and never touch it?
js中作用域:
http://www.studyofnet.com/news/294.html
js作用域:
http://www.cnblogs.com/qixuejia/archive/2009/12/18/1626951.html
js作用域与作用域链详解:
http://blog.csdn.net/yueguanghaidao/article/details/9568071
javascript 函数及作用域总结介绍:
http://www.jb51.net/article/43068.htm
  • Why would you use something like the load event? Does this event have disadvantages? Do you know any alternatives, and why would you use those?
javascript addLoadEvent函数说明:
http://www.jb51.net/article/21707.htm
  • Explain what a single page app is and how to make one SEO-friendly.
单页Web应用或引领下一代Web新趋势?
http://www.csdn.net/article/2012-12-10/2812658-Single-Page-Applications
【WebApp】单页webapp应用开发总结【暂完】:
http://my.oschina.net/maomi/blog/183790?p=1
mobilebone.js-mobile移动web APP单页切换骨架:
http://www.zhangxinxu.com/wordpress/2014/10/mobilebone-js-mobile-web-app-core/
探讨webapp的SEO难题(上):
http://www.cnblogs.com/yexiaochai/p/3886925.html
  • What is the extent of your experience with Promises and/or their polyfills?
  • What are the pros and cons of using Promises instead of callbacks?
  • What are some of the advantages/disadvantages of writing JavaScript code in a language that compiles to JavaScript?
  • What tools and techniques do you use debugging JavaScript code?
  • What language constructions do you use for iterating over object properties and array items?
  • Explain the difference between mutable and immutable objects.
    • What is an example of an immutable object in JavaScript?
    • What are the pros and cons of immutability?
    • How can you achieve immutability in your own code?
  • Explain the difference between synchronous and asynchronous functions.
js中同步与异步处理的方法和区别总结:
http://www.jb51.net/article/44852.htm
基于事件的JavaScript编程:异步与同步:
http://developer.51cto.com/art/201303/383862.htm
Javascript异步编程的4种方法:
http://www.ruanyifeng.com/blog/2012/12/asynchronous%EF%BC%BFjavascript.html
  • What is event loop?
    What is the difference between call stack and task queue?
JavaScript运行机制之事件循环(Event Loop)详解:
http://www.bitscn.com/school/Javascript/201410/347549.html
理解Node.js的事件循环:
http://blog.csdn.net/yanghua_kobe/article/details/12145537
JavaScript 运行机制详解:再谈Event Loop:
http://www.ruanyifeng.com/blog/2014/10/event-loop.html

原:https://github.com/h5bp/Front-end-Developer-Interview-Questions#js-questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant