moving into variables

pull/73/head
Derrek Gass 5 years ago
parent af0f5bae63
commit 29c387ddd9

@ -1,11 +1,16 @@
let firstName = 'Derrek' let firstName = 'Derrek'
firstName = 'Deek' firstName = 'Deek'
console.log(firstName) console.log("first name is " + firstName)
const PI = 3.14 // Not allowed to reassign PI to a new value const PI = 3.14 // Not allowed to reassign PI to a new value
// PI = 3. // PI = 3.
const arr = [
const arr = [] 'Derrek',
250,
true,
{ country: 'Finland', city: 'Helsinki' },
{ skills: ['HTML', 'CSS', 'JS', 'React', 'Python'] },
] // arr containing different data types
console.log(arr) console.log(arr)
const numbers = [0, 3.14, 9.81, 37, 98.6, 100] // array of numbers const numbers = [0, 3.14, 9.81, 37, 98.6, 100] // array of numbers

Loading…
Cancel
Save