Tag: JavaScript

  • Registration Form

    User Regristration Form Name* Age* Email* Submit User Information This project showcases a user registration form built with HTML, CSS, and JavaScript. The form captures user information such as name, age, and email. Upon submission, the data is stored and displayed in a user information section. A User class is utilized to create user objects,…

  • Phone Number Validator

    Validate Phone Number how it works This JavaScript code validates US phone numbers using event listeners for efficient user input handling. The ‘telephoneCheck’ function employs two regular expressions (‘rex1’ and ‘rex2’) to define valid US phone number patterns. Upon comparison, the function returns ‘true’ for a valid phone number and ‘false’ for an invalid one.…

  • Palindrome Checker

    CLEAR CHECK how it works A palindrome is a word, phrase, number, or sequence that reads the same forwards and backward, like “radar” or “level.” The provided JavaScript code serves as a tool to validate whether a user-entered word or phrase is a palindrome. When the “check” button is clicked, the code uses event listeners…

  • Roman Numeral Converter

    Clear Enter how it works This JavaScript code efficiently converts numeric values into Roman numerals through a user-friendly web application. Users input a number in the “inputNum” field and click the “enter” button to trigger the ‘convertToRoman’ function. The function uses a lookup table named ‘arabicToRoman’ to map Arabic numerals to their corresponding Roman numerals…

  • Ceasar Cypher

    RUN CYPHER The provided JavaScript code demonstrates a ROT13 shift cipher implementation, a substitution cipher that shifts each letter in the alphabet by 13 positions. The ‘cypher’ function processes the input string, shifting each letter by finding its index in the ‘lookUpTable’ array and applying the ROT13 shift, while keeping non-letter characters unchanged. When the…

  • Calculator

    0 + – × ÷ 7 8 9 4 5 6 1 2 3 0 . AC = how it works The calculator utilizes JavaScript code with event listeners responding to user clicks on its buttons, displaying results on the calculator’s screen. The code efficiently handles different scenarios based on the actions associated with each…