This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(_ => { | |
for (let i = 2; i < 10; i++) { | |
console.log(`${i} * 1 = ${i}`); | |
console.log(`${i} * 2 = ${i * 2}`); | |
console.log(`${i} * 3 = ${i * 3}`); | |
console.log(`${i} * 4 = ${i * 4}`); | |
console.log(`${i} * 5 = ${i * 5}`); | |
console.log(`${i} * 6 = ${i * 6}`); | |
console.log(`${i} * 7 = ${i * 7}`); | |
console.log(`${i} * 8 = ${i * 8}`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(_ => { | |
console.log("2 * 1 = 2"); | |
console.log("2 * 2 = 4"); | |
console.log("2 * 3 = 6"); | |
console.log("2 * 4 = 8"); | |
console.log("2 * 5 = 10"); | |
console.log("2 * 6 = 12"); | |
console.log("2 * 7 = 14"); | |
console.log("2 * 8 = 16"); | |
console.log("2 * 9 = 18"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const generator = function*(i, j){ | |
for(let ii = 1; ii <= i; ii++) { | |
for(let jj = 1; jj <= j; jj++) { | |
yield [ii, jj, ii * jj]; | |
} | |
} | |
}; | |
for(const [i, j, k] of generator(9,9)){ | |
console.log(`${i} x ${j} = ${k}`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>75 - 2</title> | |
</head> | |
<body> | |
<img id="a"/> | |
<div id="b"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
</head> | |
<body> | |
<section id="data"></section> | |
<script type="text/javascript"> | |
const CError = class extends Error { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lenCheck = (n, str) => str.length < n ? '0'.repeat(n - str.length) + str : str; | |
function solution(n, arr1, arr2) { | |
const answer = []; | |
for(let i=0; i<arr1.length; i++) { | |
const n1 = lenCheck(n, (+arr1[i]).toString(2)); | |
const n2 = lenCheck(n, (+arr2[i]).toString(2)); | |
const l = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function solution(dartResult) { | |
const answer = dartResult.match(/(\d+|\D)/g).reduce((p, c) => { | |
let n = 0; | |
switch(c) { | |
case '*' : | |
const n1 = p.pop(); | |
const n2 = p.pop(); | |
if(n2) p.push(n2 * 2); | |
p.push(n1 * 2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); | |
const querystring = require('querystring'); | |
const headers = {'Content-Type': 'application/x-www-form-urlencoded'}; | |
/** | |
* ajax http get request | |
* | |
* @param url | |
* @param params |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>todo</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
</body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>todo</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
</body> |