GithubHelp home page GithubHelp logo

js-lab-1-1's Introduction

Javascript lab 1

Overview

Convert the information that you have about yourself into variables in Javascript.

Instructions

  1. Create a variable called myFirstName that contains your first name. example: "Luffy"
  2. Create a variable called myLastName that contains your last name.
  3. Create a variable called myFullName that contains both first and last name. Use the previously created variables to do this.πŸ‘
  4. Create a variable called myHobbies that contains a list of your hobbies. example: eat, fight, get on the ship
  5. Create a variable called currentStudent that is a boolean (true or false) that says if you are a student or not. example: false
  6. Create a variable called myDream that contains description about your dream.
  7. Create a variable called bestFriend that contains the name of your closest friend.
  8. Create a variable called phoneNumber that contains a phone number.
  9. Create a variable called favoriteMeal that contains the name of your favorite meal, I already know it's Kunafa thoughπŸ˜‹.
  10. Create a variable called myBirthYear that contains the year you were born.
  11. Create a variable called currentYear that contains the current year.
  12. Create a variable called myAge that will show your age. Use the previously created variables to calculate this.
  13. After you wrote all the above variables, look at them again. Are there any variables that won't be changing like your name? If there is then change them to const.

Bonus

  1. Print all variables in the console with meaningful description.

Hope you have fun coding! πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

js-lab-1-1's People

Watchers

Dhia Alhaq Shalabi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.