Data Types and Variables

In this article I'll be answering a few questions about Data types and Variables in Javascript. Source to the article containing the questions can be found at Turing.

  1. The five primitive data types in Javascript are: Boolean Undefined Null Number String

  2. Variables are places we store data. There are needed in every type of program conceivable. As a program is running, it needs to hold information in it's memory to perform all sorts of operations. Variables are needed to temporarily store small and large pieces of data. Example:

      let girl = 'ADA'
    
  3. An example of a string concatenation is

    let firstName = 'Dioka'
    let lastName  = 'Ejionueme'

   let Name = firstName + "  " + lastName;
   console.log(Name)
Using template literals:
  let firstName = 'Dioka'
  let lastName = 'Ejionueme'

  let Name = `${firstName} ${lastName}`;
  console.log(Name)

Question

Considering Javascript is a loosely typed language which gives a lot of flexibility to what can be 
done, what are the negative effects of that? Do they outweigh the necessity of 'flexibility' it 
offers?