Posts

Showing posts from April, 2018

lab 21

Hello everyone! Lab 21 was one of the challenging labs that we had to do during the 2nd marking PD. For this lab, we had to validate everything that the user inputs. It included name, address, zip code, phone number and credit card number. And for this, we had to validate it. So it for the phone number it needs to be certain digit and for a credit card, it must be certain characters long. this was hard because or special instruction was that credit card number must be equal to 16+ when u add up all the 16 character number also it must end with an even number. But it was done. That's all for this lab.

lab 20

Hello everyone! Lab 20 was a combination of past all 4 labs. So for this lab, we would have to create an alert a prompt and a confirm box. So we can use many scenarios to use this lab. for me, I had a self-driving taxi. so it would ask you to whats ur name and where you want to go. then it would tell you your name is "pepito Perez" you want to go to this "x" location. and is it correct if click yes it would say ok thank you for riding with us? if you press no it would take you back to the beginning to fix the mistake that was made. that's all for lab 20.

lab 19

Hello Everyone! This lab was very simple. We had to create a guessing game. So there would be a random number between 1 to 15 and you would have to guess the number and input it in the given space. if you give a number less then the actual set number the alert would say your number is too low please guess higher and if you guess too high it would tell you to you are guessing too high it would to lover down the number and if you guess correct it says congratulation. And the set numbers are random too so there is no way it will be the same answer for the same thing. That's all for lab 19.

lab 18

Hello everyone! We start off with our base lab as always. Lab 17 was a copy paste of lab 18 but instead of giving the user the choice of 2 values they only had 1 value to input and there was a set first value(5) so whatever the second value was the user got to choose. also after they use the math property the set value would change to the result of past action. so let's say they added 1 with 5 then the initial value will be set to 6. that's all for lab 18.

lab 17

Hello everyone! Our lab 17 was simple and our task was to create a calculator using javascript. So for that, I used my base lab and after that, I needed to create 2 input box. and after that, I needed to create 5 functions/button. And those buttons were for adding, subtracting, multiplying, dividing and modulo. so whatever number the user inputs and whatever function/button they call it would do the calculation and give you the result. That's all for lab 17.

Lab 16

Hello everyone! Lab 16 was a basic simple javascript lab. So for this lab, I used my base lab to get me started and our objective was to make an alert box using javascript. So our task was to create a page that would ask for your name, phone number, and email address. after you filled up and hit continue a pop-up button would open up and say your name is "x" your phone number is "y" and ur email is "z" and those x,y, z's are user input name. so whatever was inputted it showed it in the alert box. That's it for this lab.

lab 15

Hello everyone! Lab 15 was creating a base lab and coding our first javascript. So our instruction was that we will have to create a base lab so this was the more labs we will do we can use that as a template and speed up our progress. Next, we had to use our own HTML and CSS to make our base lab. and after that our task was to create a clickable button. so we had to write how we did our project and in the paragraph, we had to write how we did our lab and for me, I wrote a poem. Also after we click the button it should say hello world and for my lab, it said inspired. That's all for lab 15