我想问一下,您做动图用的是什么软件,我找了一款,但是不是很清楚。期待您的回复~~
6,以下表达式的运行结果是:
var END = Math.pow(2,53);
var START = END -100;
var count = 0;
for(var i = START ; i <= END ;i++){
count ++;
}
console.log(count);
A.0
B.100
C.101
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
7,以下表达式的运行结果是:
var arr = [0,1,2];
arr[10] = 10;
arr.filter(function(x){return x === undefined});
A.[undefined x 7]
B.[0,1,2,10]
C.[]
D.[undefined]
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
8,以下表达式的运行结果是:
var two = 0.2;
var one = 0.1;
var eight = 0.8;
var six = 0.6;
[two -one == one,eight- six == two];
A.[true,true]
B.[false,false]
C.[true,false]
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
9,以下表达式的运行结果是:
function showCase(value){
switch(value){
case 'A':
console.info('Case A');
break;
case 'B':
console.info('Case B');
break;
case undefined :
console.info('undefined');
break;
default:
console.info('Do not know!');
}
}
showCase(new String('A'));
A.Case A
B.Case B
C.Do not know
D.undefined
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
10,以下表达式的运行结果是:
function showCase(value){
switch(value){
case 'A':
console.info('Case A');
break;
case 'B':
console.info('Case B');
break;
case undefined :
console.info('undefined');
break;
default:
console.info('Do not know!');
}
}
showCase(String('A'));
A.Case A
B.Case B
C.Do not know
D.undefined
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
11,以下表达式的运行结果是:
function isOdd(num){
return num % 2 == 1;
}
function isEven(num){
return num % 2 == 0;
}
function isSane(num){
return isEven(num)||isOdd(num);
}
var values = [7,4,'13',-9,Infinity];
values.map(isSane);
A.[true, true, true, true, true]
B.[true, true, true, true, false]
C.[true, true, true, false, false]
D.[true, true, false, false, false]
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
12,以下表达式的运行结果是:
[parseInt(3,8),parseInt(3,2),parseInt(3,0)]
A.[3,3,3]
B.[3,3,NaN]
C.[3,NaN,NaN]
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
13,以下表达式的运行结果是:
Array.isArray(Array.prototype)
A.true
B.false
C.报错
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
14,以下表达式的运行结果是:
var a = [0];
if([0]){
console.info(a == true);
}else{
console.info("else");
}
A.true
B.false
C."else"
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
15,以下表达式的运行结果是:
[]==[]
A.true
B.false
C.报错
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
16,以下表达式的运行结果是:
[('5'+3),('5'-3)]
A.["53",2]
B.[8,2]
C.报错
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
17,以下表达式的运行结果是:
1+-+++-+1
A.true
B.false
C.报错
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
18,以下表达式的运行结果是:
var arr = Array(3);
arr[0] = 2
arr.map(function(elem){return '1';});
A.[2,1,1]
B.["1","1","1"]
C.[2,"1","1"]
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
19,以下表达式的运行结果是:
function sidEffecting(arr){
arr[0] = arr[2];
}
function bar(a,b,c){
c = 10;
sidEffecting(arguments);
return a+b+c;
}
bar(1,1,1);
A.3
B.12
C.报错
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
20,以下表达式的运行结果是:
var a = 111111111111111110000;
b = 1111;
console.info(a+b);
A.111111111111111111111
B.111111111111111110000
C.NaN
D.Infinity
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
21,以下表达式的运行结果是:
ar x = [].reverse;
x();
A.[]
B.undefined
C.报错
D.window
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
22,以下表达式的运行结果是:
Number.MIN_VALUE>0
A.true
B.false
C.报错
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
23,以下表达式的运行结果是:
[1<2<3,3<2<1]
A.[true,true]
B.[true,false]
C.报错
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
24,以下表达式的运行结果是:
2 == [[[2]]]
A.true
B.false
C.undefined
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
25,以下表达式的运行结果是:
[3.toString(),3..toString(),3...toString()]
A.["3",error,error]
B.["3","3.0",error]
C.[error,"3",error]
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
26,以下表达式的运行结果是:
(function(){
var x1 =y1 =1;
})();
console.info(y1);
console.info(x1);
A.1,1
B.error,error
C.1,error
D.其他
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
27,以下表达式的运行结果是:
var a = Function.length,
b = new Function().length;
a === b
A.true
B.false
C.error
D.other
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
28,以下表达式的运行结果是:
var a = Date(0);
var b = new Date(0);
var c = new Date();
[a === b, b === c, a === c]
A.[true, true, true]
B.[false, false, false]
C.[false, true, false]
D.[true, false, false]
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
29,以下表达式的运行结果是:
var min = Math.min(), max = Math.max()
min < max
A.true
B.false
C.error
D.other
- 1
- 2
- 3
- 4
- 5
- 6
- 7
30,以下表达式的运行结果是:
function captureOne(re, str) {
var match = re.exec(str);
return match && match[1];
}
var numRe = /num=(\d+)/ig,
wordRe = /word=(\w+)/i,
a1 = captureOne(numRe, "num=1"),
a2 = captureOne(wordRe, "word=1"),
a3 = captureOne(numRe, "NUM=2"),
a4 = captureOne(wordRe, "WORD=2");
[a1 === a2, a3 === a4]
A.[true, true]
B.[false, false]
C.[true, false]
D.[false, true]
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
31,以下表达式的运行结果是:
var a = new Date("2014-03-19"),
b = new Date(2014, 03, 19);
[a.getDay() === b.getDay(), a.getMonth() === b.getMonth()]
A.[true, true]
B.[true, false]
C.[false, true]
D.[false, false]
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
32,以下表达式的运行结果是:
if ('http://giftwrapped.com/picture.jpg'.match('.gif')) {
'a gif file'
} else {
'not a gif file'
}
A.'a gif file'
B.'not a gif file'
C.error
D.other
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
33,以下表达式的运行结果是:
function foo(a) {
var a;
return a;
}
function bar(a) {
var a = 'bye';
return a;
}
[foo('hello'), bar('hello')]
A.["hello", "hello"]
B.["hello", "bye"]
C.["bye", "bye"]
D.other
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
34,以下表达式的运行结果是:
var a = {class: "Animal", name: 'Fido'};
a.class
A."Animal"
B.Object
C.an error
D.other
- 1
- 2
- 3
- 4
- 5
- 6
- 7
35,以下表达式的运行结果是:
var a = new Date("epoch")
A.Thu Jan 01 1970 01:00:00 GMT+0100 (CET)
B.current time
C.error
D.other
- 1
- 2
- 3
- 4
- 5
- 6
36,以下表达式的运行结果是:
var a = /123/,
b = /123/;
a == b
a === b
A.true, true
B.true, false
C.false, false
D.other
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
37,以下表达式的运行结果是:
What is the result of this expression? (or multiple ones)
var a = [1, 2, 3],
b = [1, 2, 3],
c = [1, 2, 4]
a == b
a === b
a > c
a < c
A.false, false, false, true
B.false, false, false, false
C.true, true, false, true
D.other
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
38,以下表达式的运行结果是:
var a = {}, b = Object.prototype;
[a.prototype === b, Object.getPrototypeOf(a) === b]
A.[false, true]
B.[true, true]
C.[false, false]
D.other
- 1
- 2
- 3
- 4
- 5
- 6
- 7
39,以下表达式的运行结果是:
function f() {}
var a = f.prototype, b = Object.getPrototypeOf(f);
a === b
A.true
B.false
C.null
D.other
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
40,以下表达式的运行结果是:
function foo() { }
var oldName = foo.name;
foo.name = "bar";
[oldName, foo.name]
A.error
B.["", ""]
C.["foo", "foo"]
D.["foo", "bar"]
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
41,以下表达式的运行结果是:
"1 2 3".replace(/\d/g, parseInt)
A."1 2 3"
B."0 1 2"
C."NaN 2 3"
D."1 NaN 3"
- 1
- 2
- 3
- 4
- 5
- 6
42,以下表达式的运行结果是:
function f() {}
var parent = Object.getPrototypeOf(f);
f.name // ?
parent.name // ?
typeof eval(f.name) // ?
typeof eval(parent.name) // ?
A."f", "Empty", "function", "function"
B."f", undefined, "function", error
C."f", "Empty", "function", error
D.other
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
43,以下表达式的运行结果是:
var lowerCaseOnly = /^[a-z]+$/;
[lowerCaseOnly.test(null), lowerCaseOnly.test()]
A.[true, false]
B.error
C.[true, true]
D.[false, true]
- 1
- 2
- 3
- 4
- 5
- 6
- 7
44,以下表达式的运行结果是:
var lowerCaseOnly = /^[a-z]+$/;
[lowerCaseOnly.test(null), lowerCaseOnly.test()]
A.[true, false]
B.error
C.[true, true]
D.[false, true]
- 1
- 2
- 3
- 4
- 5
- 6
- 7
45,以下表达式的运行结果是:
[,,,].join(", ")
A.", , , "
B."undefined, undefined, undefined, undefined"
C.", , "
D.""
- 1
- 2
- 3
- 4
- 5
- 6
- 顶
- 1
- 踩
- 0
- 猜你在找
BAT及各大互联网公司2014前端笔试面试题JavaScript篇javascript面试题慢慢收集js面试题为javascript增加删除重复元素的方法Javascript面试题与前两遍部分重复----符答案BAT及各大互联网公司2014前端笔试面试题JavaScript篇
查看评论
- 2楼 十一期_周洲4天前 16:37发表 [回复]

- 可以出书了。。
- 1楼 qq_151672612015-11-12 11:23发表 [回复]

- 答案呢
- Re: 伪砖家2015-11-16 13:04发表 [回复]

- 回复qq_15167261:答案来自:http://javascript-puzzlers.herokuapp.com/
您还没有登录,请[登录]或[注册]
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
核心技术类目
全部主题 Hadoop AWS 移动游戏 Java Android iOS Swift 智能硬件 Docker OpenStack VPN Spark ERPIE10 Eclipse CRM JavaScript 数据库 Ubuntu NFC WAP jQuery BI HTML5 Spring Apache .NET API HTML SDK IIS Fedora XML LBS Unity Splashtop UML components Windows Mobile Rails QEMU KDE Cassandra CloudStack FTC coremail OPhone CouchBase 云计算 iOS6 Rackspace Web App SpringSide Maemo Compuware 大数据 aptech Perl Tornado Ruby Hibernate ThinkPHP HBase Pure Solr Angular Cloud Foundry Redis Scala Django Bootstrap
- 个人简介
希望大家一起交流,一起进步,每天学一点!
有疑问或更多交流,请留言、私信或者邮箱:gpxiao118@163.com;
IF(BOOL 学习==FALSE) BOOL 落后=1
知识就像内裤,虽然看不见,但是很重要。
- 文章搜索
- 博客专栏
| 深入分析javaweb
文章:26篇 阅读:8799 |
| 深入理解BootStrap
文章:18篇 阅读:5301 |
| JavaScript设计模式浅谈
文章:7篇 阅读:2065 |
| 超实用的JavaScript代码段
文章:5篇 阅读:1755 |
| 你不知道的jQuery
文章:10篇 阅读:2290 |
| 你不知道的JavaScript
文章:32篇 阅读:21559 |
- 文章分类
- 阅读排行
- 你不知道的JavaScript--Item18 JScript的Bug与内存管理(5272)
- 你不知道的JavaScript--Item27 异步编程异常解决方案(1858)
- 你不知道的JavaScript--Item11 arguments对象(1506)
- win7 telnet命令无法开启的解决方案(不是内部命令或外部命令)(1324)
- Apache启动不了httpd: apr_sockaddr_info_get() failed xgp(1152)
- 你不知道的JavaScript--Item31 值得你挑战的JavaScript面试题(45题)(968)
- 你不知道的JavaScript--Item23 定时器的合理使用(928)
- 拿到6个重磅offer的大神,超详细面试经验总结


浙公网安备 33010602011771号