当前位置:网站首页>Interesting interview questions
Interesting interview questions
2022-07-02 12:44:00 【There is no water in the sea】

var x = 1;
// If function parameters have default values , The parameter itself forms a scope , This scope is used to save the value of the parameter
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
边栏推荐
- 包管理工具
- . Net, C # basic knowledge
- spfa AcWing 852. spfa判断负环
- Sweetheart leader: Wang Xinling
- . Net wechat message template push
- Heap acwing 839 Simulated reactor
- 计数类DP AcWing 900. 整数划分
- 百款拿来就能用的网页特效,不来看看吗?
- Direct control PTZ PTZ PTZ PTZ camera debugging (c)
- Programmers can't find jobs after the age of 35? After reading this article, you may be able to find the answer
猜你喜欢

Writing method of then part in drools

移动式布局(流式布局)

Dijkstra AcWing 850. Dijkstra求最短路 II

JS6day(DOM结点的查找、增加、删除。实例化时间,时间戳,时间戳的案例,重绘和回流)

模数转换器(ADC) ADE7913ARIZ 专为三相电能计量应用而设计

堆 AcWing 839. 模拟堆

spfa AcWing 851. SPFA finding the shortest path

Simple understanding of ThreadLocal

JSON serialization and parsing

Lekao.com: experience sharing of junior economists and previous candidates in customs clearance
随机推荐
js 迭代器 生成器 异步代码处理 promise+生成器 -> await/async
Some sudden program ideas (modular processing)
JSON serialization and parsing
Intel internal instructions - AVX and avx2 learning notes
Simple use of drools decision table
Dijkstra AcWing 850. Dijkstra求最短路 II
Use sqoop to export ads layer data to MySQL
堆 AcWing 839. 模拟堆
趣味 面试题
spfa AcWing 851. spfa求最短路
JDBC prevent SQL injection problems and solutions [preparedstatement]
Deep Copy Event bus
Direct control PTZ PTZ PTZ PTZ camera debugging (c)
Shuttle encapsulated AppBar
The second composition template of postgraduate entrance examination English / chart composition, English chart composition is enough
AI mid stage technology research
Find the common ancestor of any two numbers in a binary tree
Interview with meituan, a 34 year old programmer, was rejected: only those under the age of 30 who work hard and earn little overtime
js4day(DOM开始:获取DOM元素内容,修改元素样式,修改表单元素属性,setInterval定时器,轮播图案例)
FBX import under ue4/ue5 runtime