JSFiddle - React, Tailwind, and code Playground
by Ryan J
JavaScript
/* let x = 10;
x *= 5;
let y = x
console.log(x);
let x = 20;
let y = 50;
let sum = (x + y);
console.log(`this is the sum ${sum}`);
let z = 'Ryan\'s';
let employer = "RBC";
let badge = z + ' ' + employer;
console.log(badge);
let stringTemplate = `${z} ${employer}`;
console.log(stringTemplate);
console.log(z + x);
*/
/* let x = "50"
let y = "100"
let sum = x + y;
console.log(sum)
*/
// Total Sum 3, 6 , 19, 22, 100, 200, 340, 123, 5452
/* let a = 3
let b = 6
let c = 19
...
*/
let sum = [3,6,19,22,100,200,340,123,545,2];
let arrLength = sum.length;
let arrLog = sum[]
console.log(arrLength);
console.log(sum[sum.length-2])