Quiz 12 - Function Arguments

  Рет қаралды 47

Code Gyaan

Code Gyaan

3 ай бұрын

if you use "use strict"; you will see that twice: 1, 2, 3, undefined
"use strict";
function log(a, b, c, d) { console.log(a, b, c, d) arguments[0] = 'bfe' // in strict mode arguments-array and variables a, b, c, d it's not the // same. If you change arguments-array, variables will not be changed. arguments[3] = 'dev'
console.log(a, b, c, d) }
log(1, 2, 3) // "1, 2, 3, undefined" you can see that twice
Why do developers use not strict mode?

Пікірлер
All useEffect Mistakes Every Junior React Developer Makes
22:23
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,7 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 15 МЛН
Little girl's dream of a giant teddy bear is about to come true #shorts
00:32
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Responsive Flexbox Layout in 2 Minutes
2:41
SolarDev
Рет қаралды 30 М.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 264 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 397 М.
Implement curry function in Javascript
2:13
Code Gyaan
Рет қаралды 178
Generics: The most intimidating TypeScript feature
18:19
Matt Pocock
Рет қаралды 169 М.
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,7 МЛН