Basic javascript And Variables MCQ question and answer – 03

6
Created on By admin

Basic javascript And Variables MCQ question and answer - 03

1 / 10

1. Consider the following snippet code
var string1 =123”;var intvalue = 123;alert( string1 + intvalue );

The result would be

 

 

2 / 10

2. A function definition expression can be called

 

3 / 10

3. The property of a primary expression is

 

4 / 10

4. Consider the following statements
var text = "testing: 1, 2, 3"; // Sample textvar pattern = /d+/g // Matches all instances of one or more digits

In order to check if the pattern matches with the string “text”, the statement is

 

 

5 / 10

5. The JavaScript’s syntax calling ( or executing ) a function or method is called

 

6 / 10

6. What kind of an expression is “new Point(2,3)”?

 

7 / 10

7. Which of the operator is used to test if a particular property exists or not?

 

8 / 10

8. Among the following, which one is a ternary operator?

 

9 / 10

9. “An expression that can legally appear on the left side of an assignment expression.” is a well known explanation for variables, properties of objects, and elements of arrays. They are called

 

10 / 10

10. JavaScript is a _______________ language.

 

Your score is

The average score is 33%

0%

Leave a Reply

Your email address will not be published. Required fields are marked *