A Logo of Seth's Portfolio as an S and M

Seth McNamee

Programmer

JavaScript Projects

JavaScript Project Math Function and String Manipulation

Using JavaScript This project finds the factorial of a number, performs simple math calculations by finding sum, average, high, and low, and manipulates a string. Please click the picture below to view the working project.

Math Functions and String Manipulation Link
Please Click the Picture to view Website.

JavaScript Code For Project

Displays the Factorial Function Code

Displays the Math Calculation function

Display the String Manipulation Function

JavaScript Project Lottery

This Project uses JavaScript to make a lottery game website. The user has six guesses of numbers between 1 and 40 and once the button is pressed the javascript then generates six random numbers and compares them to the users numbers and then tells you how many numbers you have gotten right. Click the link below to view the web page.

JavaScript Lottery Link
Please click the Picture to view Website.

JavaScript Code For Project

Display First half of the Lottery Function code

Display the Second half of the Lottery Function code

Display the error checking Functions code