DEV Community

ViGnEsH
ViGnEsH

Posted on

Variable, operations, conditional statments

April/18/2026

  1. login system

Output

We are used : Function Expression
username and password corrent only print Login successfully
username one wrong print invalid username
password only wrong print invalid password
username and password both wrong print invalid username and password.


2. Product details

Output

We are used : Function Expression
Product details : three varibles store data comma varibles
like : console.log( variblesName , "String" ,variblesName, "String",variblesName, "String")


3. student mark

Output

We are used : Function Expression
three varibles store data used arithmetic operators +


4. swap number

Output

We are used : Function Expression
Student: two varibles swap two number and store.


5. Login status

Output

We are used : Function Expression
used data types in booleans true or false


Top comments (0)