DEV Community

Deva I
Deva I

Posted on

JavaScript scenario questions using(Variables, operators, conditional Statements)

1. building a login system:

PROGRAM:

OUTPUT:

2. Print a given message:

PROGRAM:

OUTPUT:

3. calculate the student marks:

PROGRAM:

OUTPUT:

4. Swap two numbers without using a third variable.

PROGRAM:

OUTPUT:

5. User is logged in or not and show a message:

PROGRAM:

OUTPUT:

Top comments (0)