Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- </head>
- <body>
- <script id="jsbin-javascript">
- /*
- Directions:
- 1. Create one variable called firstName and set it to your first name as a string.
- 2. Create one variable called lastName and set it to your last name as a string.
- 3. Create one variable called fullName that combines firstName and lastName.
- 4. Print the variable fullName to the console.
- ** If you get stuck, look back through today's slides and the Do Now activity.
- ** BONUS:
- 1. Create another variable called myAge and set it to your age as a number.
- 2. Divide the value of the myAge variable by 2.
- 3. Print the myAge variable after your fullName variable.
- */
- var firstname = "Ellis";
- var lastname ="Maise";
- var fullname ="Ellis Xavier Maise";
- console.log(fullname);
- var myage ="48";
- myage = 48/2;
- console.log(myage);
- alert(fullname);
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">/*
- Directions:
- 1. Create one variable called firstName and set it to your first name as a string.
- 2. Create one variable called lastName and set it to your last name as a string.
- 3. Create one variable called fullName that combines firstName and lastName.
- 4. Print the variable fullName to the console.
- ** If you get stuck, look back through today's slides and the Do Now activity.
- ** BONUS:
- 1. Create another variable called myAge and set it to your age as a number.
- 2. Divide the value of the myAge variable by 2.
- 3. Print the myAge variable after your fullName variable.
- */
- var firstname = "Ellis";
- var lastname ="Maise";
- var fullname ="Ellis Xavier Maise";
- console.log(fullname);
- var myage ="48";
- myage = 48/2;
- console.log(myage);
- alert(fullname);</script></body>
- </html>
Add Comment
Please, Sign In to add comment