특수문자 출력하기

도비김·2023년 6월 29일
0
문제 설명

다음과 같이 출력하도록 코드를 작성해 주세요.


출력 예시

!@#$%^&*(\'"<>?:;

solution

const readline = require('readline');
const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
});

rl.on('close', function () {
    console.log(`!@#$%^&*(\\'"<>?:;`)
});

특수문자 사용시``사용, \을 출력하려면 두번 해줘야 한다.

profile
To Infinity, and Beyond!

0개의 댓글