Skip to content

Dantech12/Variables-and-Data-Types-class-Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Variables-and-Data-Types-class-Assignment

Welcome the Variables and Data Types class assignment. In this assignment, we will be working with variables and data types in javascript read the instructions below and complete the assignment.

Instructions

  1. clone this repository
git clone  https://github.com/JS-TS-Coding-Wizards/Variables-and-Data-Types-class-Assignment
  1. Create a new branch with your name and checkout to that branch
git checkout -b <your-name>
  1. Open the project in your favorite code editor and complete the assignment

  2. After completing the assignment, push your code to the remote repository

git add .

git commit -m "your commit message"

git push origin <your-branch-name>
  1. Create a pull request to the main branch

Assignment: Variables and Data Types

Objective: The objective of this assignment is to practice working with variables and data types in JavaScript. You will be given a set of tasks that involve declaring variables, assigning values, and performing operations using different data types.

Instructions:

  1. Create a new JavaScript file in your local development environment with your name example Clifford.js.
  2. Complete the following tasks in the JavaScript file:
    • Declare three variables: numOne, numTwo, and numThree, and assign them values of your choice (numeric values).
    • Declare a variable result and calculate the sum of numOne, numTwo, and numThree. Print the result to the console.
    • Declare a variable fullName and assign it your full name as a string.
    • Declare a variable age and assign it your age as a number.
    • Declare a variable isStudent and assign it a boolean value representing whether you are a student or not.
    • Create an array hobbies and add at least three hobbies of your choice as string values.
    • Print the fullName, age, isStudent, and hobbies to the console.
  3. Save the JavaScript file and test it by running it in a browser console or using a JavaScript runtime environment nodejs .
  4. Once you have completed the assignment, push your code to the GitHub repository we have set up for our class.

Note: Feel free to add additional tasks or challenges to further explore variables and data types if you feel comfortable doing so.

Submission: Share the GitHub repository link containing your completed assignment in the WhatsApp group. Make sure to submit the assignment within the specified timeframe.

Good luck, and have fun coding!

Remember, if you have any questions or need assistance, feel free to reach out to me.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published