Skip to content

10-4-pursuit/01-02-javascript-control-structures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

JavaScript Control Structures

Objective

Understand and practice using control structures in JavaScript, such as loops and conditionals.

Instructions

  1. Clone this repository to your local machine.
  2. Create a file named control-structures.js.

Tasks

  1. Write a 'for' loop that prints numbers 0 to 4, each on a new line, in the format 'Number X', where X is the current number.
  2. Modify the 'if-else' statement from the previous exercise to include a new condition. If the name is 'Bob', print 'Hello Bob!'.

Submission

Commit and push your control-structures.js file to this repository. Ensure it includes the 'for' loop and the modified 'if-else' statement.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published