JavaScript Junior

1 / 10

What are Imports and Exports in JavaScript?

Select the correct answer

1

Imports and Exports are used for defining CSS classes.

2

Imports and Exports are used to style HTML elements.

3

Imports and Exports allow modules to be used across different files.

4

Imports and Exports manage database connections.

What is the this keyword in JavaScript?

Select the correct answer

1

The this keyword refers to the object it belongs to.

2

The this keyword is not used in JavaScript.

3

The this keyword refers to the function's prototype.

4

The this keyword refers to the global object always.

What are the differences between var, let, and const?

Select the correct answer

1

var is block-scoped, let and const are function-scoped.

2

var is function-scoped, let and const are block-scoped.

3

var and const are block-scoped, let is function-scoped.

4

var and let are block-scoped, const is function-scoped.

What is the difference between the Document and Window in Javascript?

Select the correct answer

1

The Document object is for backend logic, while the Window object is for frontend logic.

2

The Document object is for APIs, while the Window object is for HTML tags.

3

The Document object represents the HTML document, while the Window object represents the browser window.

4

The Document object is used for JavaScript code, while the Window object is used for CSS.

Explain the window object.

Select the correct answer

1

The window object is a backend server component.

2

The window object represents the browser's window.

3

The window object represents the document's body.

4

The window object is used to style elements in CSS.

What is the DOM?

Select the correct answer

1

The DOM is a programming interface for HTML and XML documents.

2

The DOM is a styling language for web pages.

3

The DOM is a JavaScript library.

4

The DOM is a database management system.

What are the differences between JavaScript and TypeScript?

Select the correct answer

1

TypeScript is a completely different language from JavaScript.

2

JavaScript and TypeScript are both compiled languages.

3

JavaScript is a superset of TypeScript that adds dynamic types.

4

TypeScript is a superset of JavaScript that adds static types.

What is the difference between JavaScript and Java?

Select the correct answer

1

JavaScript is compiled, while Java is interpreted.

2

JavaScript and Java are the same in terms of syntax.

3

JavaScript is used for backend, while Java is used for frontend.

4

JavaScript is a scripting language, while Java is a programming language.

Is JavaScript a compiled or interpreted language?

Select the correct answer

1

JavaScript is an interpreted language.

2

JavaScript is neither compiled nor interpreted.

3

JavaScript is both compiled and interpreted.

4

JavaScript is a compiled language.

Is JavaScript a statically typed or a dynamically typed language?

Select the correct answer

1

JavaScript is a dynamically typed language.

2

JavaScript is a statically typed language.

3

JavaScript is a strongly typed language.

4

JavaScript is a weakly typed language.