DEV Community

Vikas Singh
Vikas Singh

Posted on

πŸ“˜ JavaScript Day 2

Hey everyone πŸ‘‹

It’s Day 2 of my JavaScript learning journey!

Here’s what I learned and practiced today:

βœ… Basics:

  • console.log() – logging values and debugging in the browser console
  • Linking an external .js file to your HTML

🧠 Core Concepts:

  • Template Literals: ${variable} syntax inside backticks
  • Comparison Operators: ==, ===, !=, >, <, >=, <=
  • Comparisons for non-numbers: "5" == 5 vs "5" === 5

πŸ”€ Logic Building:

  • Logical Operators: &&, ||, !
  • Conditional Statements: if, else if, else
  • Truthy and Falsy values: understanding how JavaScript evaluates conditions

πŸ’¬ Browser Interaction:

  • alert() – show message popups
  • prompt() – take user input

I’m learning and building in public β€” follow along as I continue this journey!

Here’s my Linktree to stay connected across platforms.

Happy coding! πŸ’»πŸ”₯

javascript #100DaysOfCode #webdev #buildinpublic

Top comments (0)