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)