parent
212f956f35
commit
fe956a5c62
@ -1,20 +0,0 @@
|
|||||||
// Declaring different variables of different data types
|
|
||||||
|
|
||||||
let firstName = 'Asabeneh' // first name of a person
|
|
||||||
let lastName = 'Yetayeh' // last name of a person
|
|
||||||
let country = 'Finland' // country
|
|
||||||
let city = 'Helsinki' // capital city
|
|
||||||
let age = 100 // age in years
|
|
||||||
let isMarried = true
|
|
||||||
|
|
||||||
// Declaring variables with number values
|
|
||||||
|
|
||||||
const gravity = 9.81 // earth gravity in m/s2
|
|
||||||
const boilingPoint = 100 // water boiling point, temperature in oC
|
|
||||||
const PI = 3.14 // geometrical constant
|
|
||||||
|
|
||||||
// Variables can also be declaring in one line separated by comma
|
|
||||||
|
|
||||||
let name = 'Asabeneh', //name of a person
|
|
||||||
job = 'teacher',
|
|
||||||
live = 'Finland'
|
|
@ -0,0 +1,19 @@
|
|||||||
|
//Declaring different variables of different Data types.
|
||||||
|
|
||||||
|
let firstName = 'Norman'; //First name of a person.
|
||||||
|
let lastName = 'Taz'; //Last name of a person.
|
||||||
|
let country = 'Philippines'; //Name of a country.
|
||||||
|
let city = 'Manila'; //Name of a city.
|
||||||
|
let age = 13; //Age for years.
|
||||||
|
let single = true; //Status of the person.
|
||||||
|
|
||||||
|
|
||||||
|
//Declaring values with number values.
|
||||||
|
|
||||||
|
const gravity = 9.81; //Earth Gravitiy in m/s2.
|
||||||
|
const boilingPoint = 100; //Water boiling point, temperature in oC.
|
||||||
|
const PI = 4.14 //The number π is a mathematical constant that is the ratio of a circle's circumference to its diameter, approximately equal to 3.14159.
|
||||||
|
|
||||||
|
//Variables can also be declared in one line separated by comma.
|
||||||
|
|
||||||
|
let name = 'Kyrie', job = 'Player', live = 'Australia';
|
@ -1,17 +0,0 @@
|
|||||||
// Declaring different variables of different data types
|
|
||||||
let firstName = 'Asabeneh' // first name of a person
|
|
||||||
let lastName = 'Yetayeh' // last name of a person
|
|
||||||
let country = 'Finland' // country
|
|
||||||
let city = 'Helsinki' // capital city
|
|
||||||
let age = 100 // age in years
|
|
||||||
let isMarried = true
|
|
||||||
|
|
||||||
// Declaring variables with number values
|
|
||||||
const gravity = 9.81 // earth gravity in m/s2
|
|
||||||
const boilingPoint = 100 // water boiling point, temperature in oC
|
|
||||||
const PI = 3.14 // geometrical constant
|
|
||||||
|
|
||||||
// Variables can also be declaring in one line separated by comma
|
|
||||||
let name = 'Asabeneh', //name of a person
|
|
||||||
job = 'teacher',
|
|
||||||
live = 'Finland'
|
|
Loading…
Reference in new issue