Skip to content

chabry/01-variable-decalarations-chabry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Review Assignment Due Date

JavaScript Variables Declaration Assignment

This assignment focuses on practicing variable declaration in JavaScript.

Instructions

  1. Open the variables.js file.
  2. Complete the functions as per the instructions provided in each function's comment block.
  3. Save the file and run the tests using Jest to verify your implementations.

Getting Started

  1. Clone this repository.
  2. Open variables.js.
  3. Follow the instructions within each function's comments.
  4. Run npm install to install dependencies.
  5. Run npm test to test your code using Jest.

Functions to Implement

Function Name Description
declareVarOne() Declare a variable myVar and assign it the value 10.
declareVarTwo() Declare a variable userName and assign it the value "John Doe".
declareVarThree() Declare a variable isCompleted and assign it the value true.
declareVarFour() Declare a variable emptyArray and assign it an empty array [].
declareVarFive() Declare a variable nullVar and assign it the value null.
declareVarSix() Declare a variable undefinedVar without assigning any value to it.

Files Included

  • variables.js: Starter file where you will write your code.
  • variables.test.js: Test file to check your implementations using Jest.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors