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.
- clone this repository
git clone https://github.com/JS-TS-Coding-Wizards/Variables-and-Data-Types-class-Assignment
- Create a new branch with your name and checkout to that branch
git checkout -b <your-name>
-
Open the project in your favorite code editor and complete the assignment
-
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>
- Create a pull request to the main branch
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:
- Create a new JavaScript file in your local development environment with your name example
Clifford.js. - Complete the following tasks in the JavaScript file:
- Declare three variables:
numOne,numTwo, andnumThree, and assign them values of your choice (numeric values). - Declare a variable
resultand calculate the sum ofnumOne,numTwo, andnumThree. Print the result to the console. - Declare a variable
fullNameand assign it your full name as a string. - Declare a variable
ageand assign it your age as a number. - Declare a variable
isStudentand assign it a boolean value representing whether you are a student or not. - Create an array
hobbiesand add at least three hobbies of your choice as string values. - Print the
fullName,age,isStudent, andhobbiesto the console.
- Declare three variables:
- Save the JavaScript file and test it by running it in a browser console or using a JavaScript runtime environment nodejs .
- 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.