Tuesday, October 14, 2014

Lab 8





In lab 8, we learned how to create a table for the prime numbers from 1-1000 using JavaScript. In our JavaScript code, we used "return true" or "return true" for our code to work. My JavaScript code checks each number from 1-1000 to see if it makes a perfect square or not resulting in a table for all the prime numbers.

It was a fun lab to do because instead of us creating a table that includes the prime numbers from 1-1000, we can just use JavaScript to help us create it. In addition, JavaScript makes it more easier.


No comments:

Post a Comment