daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest Jan 16th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <meta charset="utf-8">
  5.   <meta name="viewport" content="width=device-width">
  6.   <title>JS Bin</title>
  7. </head>
  8. <body>
  9.  
  10. <script id="jsbin-javascript">
  11. /*
  12. Directions:
  13. 1. Create one variable called firstName and set it to your first name as a string.
  14. 2. Create one variable called lastName and set it to your last name as a string.
  15. 3. Create one variable called fullName that combines firstName and lastName.
  16. 4. Print the variable fullName to the console.
  17.  
  18. ** If you get stuck, look back through today's slides and the Do Now activity.
  19.  
  20. ** BONUS:
  21. 1. Create another variable called myAge and set it to your age as a number.
  22. 2. Divide the value of the myAge variable by 2.
  23. 3. Print the myAge variable after your fullName variable.
  24. */
  25.  
  26.  
  27.  
  28.  
  29. var firstname = "Ellis";
  30. var lastname ="Maise";
  31. var fullname ="Ellis Xavier Maise";
  32. console.log(fullname);
  33. var myage ="48";
  34. myage = 48/2;
  35. console.log(myage);
  36. alert(fullname);
  37. </script>
  38.  
  39.  
  40.  
  41. <script id="jsbin-source-javascript" type="text/javascript">/*
  42. Directions:
  43. 1. Create one variable called firstName and set it to your first name as a string.
  44. 2. Create one variable called lastName and set it to your last name as a string.
  45. 3. Create one variable called fullName that combines firstName and lastName.
  46. 4. Print the variable fullName to the console.
  47.  
  48. ** If you get stuck, look back through today's slides and the Do Now activity.
  49.  
  50. ** BONUS:
  51. 1. Create another variable called myAge and set it to your age as a number.
  52. 2. Divide the value of the myAge variable by 2.
  53. 3. Print the myAge variable after your fullName variable.
  54. */
  55.  
  56.  
  57.  
  58.  
  59. var firstname = "Ellis";
  60. var lastname ="Maise";
  61. var fullname ="Ellis Xavier Maise";
  62. console.log(fullname);
  63. var myage ="48";
  64. myage = 48/2;
  65. console.log(myage);
  66. alert(fullname);</script></body>
  67. </html>
RAW Paste Data
Top