'use strict';

// ------------------------------------------------------
// TABLE OF CONTENTS
// ------------------------------------------------------
// 1 - GENERAL NOTES
// 2 - STEP BY STEP
// 3 - GENERAL GUIDE
// 4 - COMMON PROBLEMS
// ------------------------------------------------------


// ------------------------------------------------------
// GENERAL NOTES
// ------------------------------------------------------

// VALUES
// - Numbers
// - Strings
// - Boolean (true / false)
// - null
// - undefined
//
// VARIABLES
// - Declaration
// - Scope
// - Hoisting
//
// CONSTANTS

// ------------------------------------------------------
// STEP BY STEP
// ------------------------------------------------------


// VARIABLES
// ------------------------------------------------------

// DECLARATION

var surname;
var name;
var age;


// INITIALIZATION

var surname = 'Silva';
var name = 'Fabrício';
var age = 28;


// ASSIGNMENT

surname = 'Mendes';
name = 'Francisco';
age = 29;


// CONSTANTS
// ------------------------------------------------------

const dev = 'Fabrício Silva';


// ------------------------------------------------------
// GENERAL GUIDE
// ------------------------------------------------------


// ------------------------------------------------------
// COMMON PROBLEMS
// ------------------------------------------------------

'use strict';

// ------------------------------------------------------
// TABLE OF CONTENTS
// ------------------------------------------------------
// 1 - GENERAL NOTES
// 2 - STEP BY STEP
// 3 - GENERAL GUIDE
// 4 - COMMON PROBLEMS
// ------------------------------------------------------


// ------------------------------------------------------
// GENERAL NOTES
// ------------------------------------------------------

// VALUES
// - Numbers
// - Strings
// - Boolean (true / false)
// - null
// - undefined
//
// VARIABLES
// - Declaration
// - Scope
// - Hoisting
//
// CONSTANTS

// ------------------------------------------------------
// STEP BY STEP
// ------------------------------------------------------


// VARIABLES
// ------------------------------------------------------

// DECLARATION

var surname;
var name;
var age;


// INITIALIZATION

var surname = 'Silva';
var name = 'Fabrício';
var age = 28;


// ASSIGNMENT

surname = 'Mendes';
name = 'Francisco';
age = 29;


// CONSTANTS
// ------------------------------------------------------

const dev = 'Fabrício Silva';

// VALUES
// ------------------------------------------------------

// NUMBERS

var number = 1;
var integer = 1;
var floatPointer = 1.0;
var notANumber = NaN;

// STRINGS

var string = "This is a String";
var name = "Fabrício Silva";

// BOOLEAN

var truthy = true;
var falsy = false;

// NULL

var notValue = null;

// UNDEFINED

var notDefinied;


// ------------------------------------------------------
// GENERAL GUIDE
// ------------------------------------------------------


// ------------------------------------------------------
// COMMON PROBLEMS
// ------------------------------------------------------

Update JavaScript Variables