Skip to content

Instantly share code, notes, and snippets.

@rosd89
Created January 15, 2019 00:57
Show Gist options
  • Save rosd89/a36bf4347fc0075a804e72326c7c476d to your computer and use it in GitHub Desktop.
Save rosd89/a36bf4347fc0075a804e72326c7c476d to your computer and use it in GitHub Desktop.
내가 개발을 시작했던 방법 - 3
(_ => {
for (let i = 2; i < 10; i++) {
for (let j = 1; j < 10; j++) {
console.log(`${i} * ${j} = ${i * j}`);
}
console.log('');
}
})();
@rosd89
Copy link
Author

rosd89 commented Jan 15, 2019

const log = msg => console.log(msg);

'23456789'.split('').forEach(i => ('123456789'.split('').forEach(j => log(`${i} * ${j} = ${+i * +j}`), log(''))));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment