Skip to content

luispardosuarez/js-micro-exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

JavaScript Exercises with CSS Styling

This repository contains a set of simple JavaScript exercises implemented as HTML, JavaScript, and CSS files. These exercises cover basic concepts such as user input handling, conditional statements, loops, and function implementation. The repository is part of the full-stack bootcamp at Factoría F5, and the exercises included here are designed to reinforce fundamental JavaScript concepts and provide hands-on practice for learners in the bootcamp. The web pages are styled using CSS to enhance the user interface.

Technologies Used

  • HTML: Used for creating the structure of the web pages.
  • JavaScript: Used to implement the logic and interactivity of the exercises.
  • CSS: Used for styling the web pages and enhancing the user experience.

Exercises

  1. Hello Javascript: A program that writes a text on the screen that says "Hello Javascript".

  2. Sum of Two Numbers: A program that writes on the screen "The sum of 3 + 5 is ".

  3. Personalized Greeting: A program that prompts the user for their name with an input and writes a text that says "Hello ".

  4. Sum of Two User-Entered Numbers: A program that asks for two numbers through form inputs and writes on the screen "The sum of with is ".

  5. Greater of Two Numbers: A program that asks the user for two numbers and writes on the screen which one is greater.

  6. Greatest of Three Numbers: A program that asks for 3 numbers and writes on the screen the greatest one.

  7. Counting Letter 'a': A program that asks the user for a phrase using a form input, counts the occurrences of the letter 'a', and displays the result.

  8. Vowels in a Phrase: A program that asks the user for a phrase using a form input, finds and displays the vowels in the phrase.

  9. Counting Vowels in a Phrase: A program that asks the user for a phrase, counts the vowels in it, and displays the result.

  10. Counting Each Vowel: A program that asks the user for a phrase, counts the occurrences of each vowel, and displays the results.

  11. Divisibility Checker: A program that asks for a number and tells us if it is divisible by 2, 3, 5, or 7 (only check if it is divisible by one of the four).

  12. Divisibility Checker with Details: An extension of the previous exercise that tells us by which of the four it is divisible (mention all divisible numbers).

  13. Writing Divisors: A program that writes on the screen the divisors of a given number.

  14. Writing Common Divisors: A program that writes on the screen the common divisors of two given numbers.

  15. Prime Number Checker: A program that tells us if a given number is prime (not divisible by any other number except itself and 1).

How to Use

  1. Clone the repository: git clone https://github.com/your-username/javascript-exercises.git
  2. Open the HTML files in your preferred web browser.
  3. Follow the instructions for each exercise displayed on the styled web page.

Feel free to explore these JavaScript exercises! If you have any questions or suggestions, please don't hesitate to reach out. Happy coding! 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published