DEV Community

Cover image for Day 81/100 Variables
Rio Cantre
Rio Cantre

Posted on • Originally published at dev.to

2 2

Day 81/100 Variables

A value must be placed in the correct form of structure to be utilized efficiently. It uses a known method to gather data and names stored and updated in memory.

Variables

Instructions

To learn more about variables take on these challenges!

  • Create variables and manipulate the values

  • Check what happens when you try concatenating strings using variables of different data types

  • Interpolate multiple variables into a string

  • See what happens when you use console.log() on variables declared by different keywords (const, let, var) before they’re defined. For example:

console.log(test1);

const test1 = 'figuring out quirks';
Enter fullscreen mode Exit fullscreen mode
  • Find the data type of a variable’s value using the typeofkeyword on a variable.

  • Use typeof to find the data type of the resulting value when you concatenate variables containing two different data types.

Code Snippets

const myPet = 'armadillo';
console.log(`I own a pet ${myPet}.`);
// Output: I own a pet armadillo.
Enter fullscreen mode Exit fullscreen mode

a11y myths

Accessibility only affects a small group of users

Not that small. Around 15% of the world's population, or estimated 1 billion people, live with disabilities, they are the world's largest minority. The number of people with disability is dramatically increasing.

resource

Top comments (0)

This post blew up on DEV in 2020:

js visualized

🚀⚙️ JavaScript Visualized: the JavaScript Engine

As JavaScript devs, we usually don't have to deal with compilers ourselves. However, it's definitely good to know the basics of the JavaScript engine and see how it handles our human-friendly JS code, and turns it into something machines understand! 🥳

Happy coding!

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay