Q1 | What is the output of the following code?
```
function reverseString(str) {
return str.s... | |
---|
Q2 | What is the output of the following JavaScript code?
```
function convertFahrenheitToCelsiu... | |
---|
Q3 | What is the output of the following code?
```
function outerFunction() {
var x = 10;
... | |
---|
Q4 | What will be the output of the following code snippet?
```
const data = '{"name": "John", "... | |
---|
Q5 | What is the output of the following code?
```
let str = " Hello World ";
console.log(s... | |
---|
Q6 | What is the output of the following code?
```
const sentence = "I love JavaScript";
const ... | |
---|
Q7 | What is the output of the following code?
```javascript
const numbers = [1, 2, 3, 4, 5];
l... | |
---|
Q8 | What will be the output of the following code?
```
function greetWithDelay(name, delayInMil... | |
---|
Q9 | Given the following JavaScript function to convert Fahrenheit to Celsius:
```javascript
fun... | |
---|
Q10 | What is the output of the following code?
```
function isPrime(number) {
if (number <= 1... | |
---|
Q11 | What will be the output of the following code?
```javascript
function checkDiscountEligibil... | |
---|
Q12 | What will be the output of the following code?
```javascript
function calculateCircleArea(r... | |
---|
Q13 | What will be the output of the following code?
```javascript
function isEven(number) {
r... | |
---|
Q14 | What will be the output of the following code?
```javascript
function calculateAverageScore... | |
---|
Q15 | What will be the output of the following code?
```
function greet(firstName){
function S... | |
---|
Q16 | What will be the output of the following code?
```
let numbers = [10, 20, 30, 40, 50];
let... | |
---|
Q17 | What will be the output of the following code?
```
function greet()
{ console.log("Hello!"... | |
---|
Q18 | What will be the output of the following code?
```
const numbers = [1, 2, 3, 4, 5];
const su... | |
---|
Q19 | What will be the output of the following code?
```
const numbers = [1, 2, 3, 4, 5];
const fi... | |
---|
Q20 | What will be the value of "doubledNumbers" after executing the following code?
```
const numb... | |
---|
Q21 | What will be the output of the following code?
```
function greet(name) {
console.log(`H... | |
---|
Q22 | What will be the output of the following code?
```
function greet(name) {
console.log(`H... | |
---|
Q23 | What will be the output of the following code?
```
const arr = [1, 2, 3, 4, 5];
const sliced... | |
---|
Q24 | What will be the value of `arr` after executing the following code?
```
const arr = [1, 2, ... | |
---|
Q25 | What will be the output of the following code?
```
const cars = ["Toyota", "Honda", "Nissan"]... | |
---|
Q26 | What will be the output of the following code?
```
const fruits = ["apple", "banana", "cher... | |
---|
Q27 | What is the output of the following code?
```javascript
console.log(5 + "5");
``` | |
---|
Q28 | What does `console.log(5 + "5");` return? | |
---|
Q29 | What is the output of the following code snippet?
```
const arr = [1, 2, 3, 4, 5];
const sli... | |
---|
Q30 | What is the output of the following code snippet?
```
const arr = [1, 2, 3, 4, 5];
const s... | |
---|
Q31 | What will be the output of the following code?
```javascript
let x = 5;
console.log(x++);
... | |
---|
Q32 | What will be the output of the following code?
```
let x = 10;
console.log(++x);
``` | |
---|