parent
07143be3b7
commit
4dbd70aca4
@ -0,0 +1,16 @@
|
||||
let firstName = 'Matthew'
|
||||
let yourName = "ODB"
|
||||
let yourAge = 100
|
||||
let myAge = 21
|
||||
const PI = 3.14
|
||||
let isMarried = true
|
||||
let nullValue = null
|
||||
let notDefined
|
||||
let anotherOne
|
||||
let andAnotherOne
|
||||
let undefinedVarFour
|
||||
array = [firstName, myAge, PI, isMarried, nullValue, notDefined]
|
||||
array.forEach(logType)
|
||||
function logType(variable){console.log(typeof variable)}
|
||||
console.log(`${firstName} is ${myAge} years old`)
|
||||
console.log(`${yourName} is ${yourAge} years old, what an oldie!`)
|
@ -1 +1,8 @@
|
||||
// comments can make code readable
|
||||
console.log('Welcome to 30DaysOfJavaScript')
|
||||
// display Welcome to 30DaysOfJavaScript
|
||||
/* comments can make code readable
|
||||
easy to reuse
|
||||
and informative
|
||||
this is a multiline comment
|
||||
*/
|
||||
|
Loading…
Reference in new issue