JAVASCRIPT PROGRAMMING
3.68K subscribers
495 photos
3 videos
48 files
102 links
Hello! I am @imabhi3030 and welcome to the Coding channel! Here we can learn all things related to coding and improve our skills. I am always present to help you. If you need any kind of assistance, just let me know! 😊
Download Telegram
Which of the following keywords is used to define a variable in Javascript?
Anonymous Quiz
28%
Var
19%
let
46%
Both Var and let
7%
None of these
What will be the output of the code?
Anonymous Quiz
8%
1
17%
2
27%
3
48%
6
function* gen() {
  yield *[1,1];
  yield 2;
  yield 3;
}

const generator = gen();

console.log(generator.next().value);
console.log(generator.next().value);

for (const value of generator) {
  console.log(value);
}
What will be the output of the above code?
Anonymous Quiz
33%
Error
3%
123
47%
[1,1]2 3
17%
1123
Which features are characteristic of JavaScript?

A) Static Typing B) Asynchronous Programming with Promises C) Compilation to Native Code D) Explicit Memory Management
Anonymous Quiz
39%
A and B
23%
C only
19%
B and D
19%
A and D
What will be the output of the following code snippet?

<script type="text/javascript" language="javascript"> var x=12; var y=8; var res=eval("x+y"); document.write(res); </script>
Anonymous Quiz
45%
20
37%
x+y
11%
128
8%
None of the above
👍1
CHALLENGE


const map = new Map();
const key1 = {};
const key2 = key1;

map.set(key1, "Value for key1");
map.set(key2, "Value for key2");

console.log(map.get({}));
console.log(map.get(key1));
🔥1
20 Best JavaScript Snippets.pdf
775.9 KB
Java scripts best 20 snippets for Full stack
🔥1
#javascript

es-toolkit — a lightweight and highly efficient utility library for JavaScript. It offers functions similar to lodash but is 97% smaller in size and operates 2-3 times faster. es-toolkit simplifies data handling in modern frontend applications.
/i flag is used in Javascript for
Anonymous Quiz
9%
Inactive
53%
Inline
21%
Internal
6%
Insensitve
12%
Insert
/g flag is used to replace the .......... match.
Anonymous Quiz
8%
Good
45%
Global
24%
Genuine
8%
Gateway
16%
GUI
In Javascript, the second parameter of ............ specifies the length of the extracted part.
Anonymous Quiz
27%
slice()
35%
substring()
16%
substr()
22%
All of the above
In Javascript, the maximum number of decimals is
Anonymous Quiz
29%
15
45%
16
16%
17
11%
18
🔥1