当前位置:网站首页>趣味 面试题
趣味 面试题
2022-07-02 09:43:00 【大海里没有水】
var x = 1;
// 如果函数参数有默认值,参数本身会形成一个作用域,这个作用域用于保存参数的值
function foo(
x,
y = function () {
x = 3;
console.log(x);
}
) {
console.log(x);
var x = 2;
y();
console.log(x);
}
foo();
console.log(x);
// undefined
// 3
// 2
// 1
边栏推荐
- lombok常用注解
- Writing method of then part in drools
- Performance tuning project case
- Jenkins user rights management
- [C language] convert decimal numbers to binary numbers
- Intel 内部指令 --- AVX和AVX2学习笔记
- The programmer and the female nurse went on a blind date and spent 360. He packed leftovers and was stunned when he received wechat at night
- ES集群中节点与分片的区别
- [C language] Yang Hui triangle, customize the number of lines of the triangle
- LeetCode—剑指 Offer 37、38
猜你喜欢
Sort---
Simple understanding of ThreadLocal
寻找二叉树中任意两个数的公共祖先
甜心教主:王心凌
drools决策表的简单使用
Jenkins voucher management
There is a hidden danger in CDH: the exchange memory used by the process of this role is XX megabytes. Warning threshold: 200 bytes
ThreadLocal的简单理解
In development, why do you find someone who is paid more than you but doesn't write any code?
Docker compose configuration mysql, redis, mongodb
随机推荐
mysql索引和事务
单指令多数据SIMD的SSE/AVX指令集和API
Map and set
Test shift left and right
CV2 in OpenCV VideoWriter_ Fourcc() function and cv2 Combined use of videowriter() function
Tas (file d'attente prioritaire)
In development, why do you find someone who is paid more than you but doesn't write any code?
Less than three months after the programmer was hired, the boss wanted to launch the app within one month. If he was dissatisfied, he was dismissed immediately
刷题---二叉树--2
测试左移和右移
Thesis translation: 2022_ PACDNN: A phase-aware composite deep neural network for speech enhancement
[C language] Yang Hui triangle, customize the number of lines of the triangle
Use sqoop to export ads layer data to MySQL
(C语言)3个小代码:1+2+3+···+100=?和判断一个年份是闰年还是平年?和计算圆的周长和面积?
String palindrome hash template question o (1) judge whether the string is palindrome
5g era, learning audio and video development, a super hot audio and video advanced development and learning classic
(C language) 3 small Codes: 1+2+3+ · · +100=? And judge whether a year is a leap year or a normal year? And calculate the circumference and area of the circle?
Full link voltage measurement
基于Arduino和ESP8266的连接手机热点实验(成功)
【工控老马】西门子PLC Siemens PLC TCP协议详解