Coder Social home page Coder Social logo

nicholedobbin / palindrome_controlstructures Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2 KB

This program reverses an inputted word, checks if the word reversed is the same as the original word and outputs the result to the console and as an alert.

HTML 13.66% JavaScript 86.34%
html if-else-statements javascript while-loop

palindrome_controlstructures's Introduction

Palindrome Checker with Conditionals and Loops

IFSL1T07 - Beginner Control Structures โ€” Loops

Description

This program uses a while loop and 'if..else' statement that prompts the user to enter a word. It then reverses the word, checks if the word reversed is the same as the original word and outputs the result to the console and as an alert.


Installation and Setup

  1. Clone the repo and open with your preferred IDE (e.g. VSCode).
  2. In the IDE, open the palindrome.html file and click the 'run' button, or click 'Go Live' if using VSCode. This should open your browser automatically to your localhost port with '/palindrome.html' as the URL endpoint.

How to Use

  1. Once the html file is loaded in your browser, a popup window will appear asking you to enter a word.
  2. Once entered, another popup will return whether or not the inputted word is a palindrome.

Credits & References

I created this project myself as part of my Hyperiondev course: Immersive Full Stack Web and Software Engineer (Level 1, Task 7), using the following websites for reference.

palindrome_controlstructures's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.