Skip to content

Conversation

0vai5
Copy link
Contributor

@0vai5 0vai5 commented Jul 24, 2024

C## Variables Challenge

Overview

This challenge introduces users to fundamental concepts related to JavaScript variables, focusing on variable declaration, reassignment, and scoping rules.

Tasks Covered

  1. Task 1: Variable Declaration with var

    • Learn how to declare variables using the var keyword and log their values to the console.
  2. Task 2: Variable Declaration with let

    • Understand the difference between var and let by declaring variables with let and observing their behavior when reassigned.
  3. Task 3: Using const for Constants

    • Explore the usage of const to declare constants and understand why they cannot be reassigned.
  4. Task 4: Type Checking with typeof

    • Learn how to use the typeof operator to check the data type of variables in JavaScript.
  5. Task 5: Variable Reassignment

    • Practice reassigning variables declared with let and observe the outcome.
  6. Task 6: Error Handling with Constants

    • Attempt to reassign a value to a constant declared with const and observe the resulting error.

Key Learnings

  • Variable Scoping: Understand the scope of variables declared with var, let, and const.
  • Type Checking: Use typeof to determine the data type of variables dynamically.
  • Best Practices: Learn best practices for variable declaration and usage in JavaScript.

Additional Notes

  • This challenge is designed to enhance understanding of JavaScript variables through practical examples.
  • Contributions should focus on clarity, educational value, and adherence to JavaScript best practices.

@sadanandpai sadanandpai self-requested a review July 24, 2024 13:32
Copy link

vercel bot commented Jul 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
jscodechallenges ✅ Ready (Inspect) Visit Preview 💬 4 unresolved Jul 25, 2024 7:39pm

@sadanandpai
Copy link
Owner

@0vai5 can you plz move the page to concepts?

Copy link
Owner

@sadanandpai sadanandpai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets include only challenges.

No key learning and feature requests. Also please follow the standards used for other challenges

@0vai5
Copy link
Contributor Author

0vai5 commented Jul 24, 2024

Lets include only challenges.

No key learning and feature requests. Also please follow the standards used for other challenges

Can You define what are you asking about, If you want i can include that in the concepts as well.

@0vai5
Copy link
Contributor Author

0vai5 commented Jul 24, 2024

I have removed the feature requests and also removed the key learnings

@0vai5 0vai5 requested a review from sadanandpai July 24, 2024 15:59
@0vai5
Copy link
Contributor Author

0vai5 commented Jul 25, 2024

Whats the update regarding the changes that were made by me @sadanandpai

@sadanandpai
Copy link
Owner

image

Fix the headers. An outcome section is not needed. Please follow the other challenges for reference
Also move it to concepts section

Also Updated Headers, Followed other pages for ref and also removed outcomes
@0vai5
Copy link
Contributor Author

0vai5 commented Jul 25, 2024

updated as per the requirments @sadanandpai

@sadanandpai sadanandpai merged commit c08424a into sadanandpai:main Jul 28, 2024
@0vai5 0vai5 deleted the Challenge--Variable branch July 28, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants