[modern-react] 리액트 스터디 파일 추가
This commit is contained in:
13
modern-react/my-modern/optional.js
Normal file
13
modern-react/my-modern/optional.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const str = null;
|
||||
console.log(str.substring(1));
|
||||
|
||||
// if (str !== null && str !== undefined) {
|
||||
// console.log(str.substring(1));
|
||||
// }
|
||||
|
||||
// const str = null;
|
||||
// console.log(str?.substring(1));
|
||||
|
||||
// const str = '위키북스';
|
||||
// console.log(str?.substring(1));
|
||||
|
||||
Reference in New Issue
Block a user