[TIL/2023] 04.27.Thu.
Today I Studied PS: Programmers/LV0/Day5, 혼자공부하는 JS: 6강, Today I Leared toFixed() : JS의 function, 소수점 n째 자리까지 표현 const num = 10.3456; const formattedNum = num.toFixed(2); console.log(formattedNum); // Output: "10.35" join() : JS의 method, join all the elements of an array into a string. const arr = ["apple", "banana", "orange"]; const str1 = arr.join(); // "apple,banana,orange" const str2 = arr.j..
2023.04.27