*learned basic velog markup
new q: 1) how to write french accents in a string, 2) what exactly is node.js?
more:
// Nan: Not A Number
// `return` can be followed by any operation
// template literal: you can change lines!
// == -> useless!
// falsey => treated as false
// null - when you want to deliberately specify that it's empty. vs. undefined
*important because you can use functions/methods just reserved for those specified types
math.pow()
mathpow(2, 5) // returns 2^5
5**7;
concat()
, slice()
indexOf()
: where the first letter of the value is located within the string includes()
: see if the string includes the value 'javascript'.length();
'hello'.concat('benji'); // 'hello benji'
'hello world'.slice(0, 5); // 'hello'
'where is benji'.indexOf('benji'); // 9
===
, !==
==
, !=
12 == '12' //true
true || false // true
false && true // false
!'' // true
!'codestates' // false
const
stops you from reassigning the variable var
appeared before let
/const
. avoid using it, problematic$love, _love
//practice
console.log(Math.floor(1843.123));
console.log(Math.sqrt(4));
console.log(Math.pow(3, 4));
console.log('최초의 JavaScript는 Netscape의 Brendan '.length);
console.log('where is benji'.indexOf('benji'));
console.log(!'codestates');
let FirstName = 'Kylian';
let MiddleName = 'A';
let LastName = 'MBappe';
console.log(`${FirstName} ${MiddleName} ${LastName}`);
console.log(`My name is ${FirstName} ${LastName}, and my middle name is ${MiddleName}.`);