Questions de Programmation JavaScript

Questions de Programmation JavaScript

Assessment

Flashcard

Information Technology (IT)

Vocational training

Practice Problem

Hard

Created by

MOHAMED YASSINE MOHAMED YASSINE bahajou

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Que renvoie l’expression : typeof null ?

Back

"object"

2.

FLASHCARD QUESTION

Front

Quelle est la valeur de 2 + '2' ?

Back

"22" (concaténation car '2' est une chaîne)

3.

FLASHCARD QUESTION

Front

Quelle est la sortie du code suivant ? let x = 5; let y = '5'; console.log(x == y);

Back

true (comparaison sans vérifier le type)

4.

FLASHCARD QUESTION

Front

Et si on remplace == par === ?

Back

false (comparaison stricte vérifie aussi le type)

5.

FLASHCARD QUESTION

Front

Quelle sera la valeur de x après ce code ? let x = 10; x += 5;

Back

15

6.

FLASHCARD QUESTION

Front

Que fait la méthode parseInt("12px") ?

Back

Renvoie 12 (extrait la partie entière avant les lettres)

7.

FLASHCARD QUESTION

Front

Quelle est la différence entre var, let et const ?

Back

var : portée fonctionnelle let : portée bloc const : constante non réaffectable

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?