-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpgOne.js
More file actions
23 lines (22 loc) · 864 Bytes
/
pgOne.js
File metadata and controls
23 lines (22 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const titleOne = "///////////// THIS IS PAGE ONE /////////////";
console.log(titleOne);
//showing a lil es6 arrow function "Basic JS reps" wiggle
const myGreeting = () => {
return "Basic JS reps";
};
//myGreeting invokes the above function.
console.log(myGreeting());
// alert function that renders whatever you pass into it! un-comment line below
// alert("hello!, let's learn JavaScript");
//console.log() helps us debug, issue warnings, errors etc.
console.log("sneakin a peak");
console.error("Error Will Robinson!");
/// targeting a variable and console.log('ing') it!
// let = you can mutate the data variable like the score of a game.
let score = 12;
score = 24;
console.log(score);
// const variable means that variable is immutable data.
// const ex. myName hence i'm never going to change my name.
const nickName = "Carlitos";
console.log(nickName);