DEV Community

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

Posted on • Originally published at dev.to

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

Discussion (0)