text 使用Copy to Gist创建
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 使用Copy to Gist创建相关的知识,希望对你有一定的参考价值。
// Challenge 1
// let num = 5;
// if (num > 2) {
// num *= 2;
// num = num * 2;
// }
// uncomment the below line to check your work
//console.log(num) // -> should print 10
// Challenge 2
// let newNum = 1;
// uncomment the below line to check your work
// console.log(newNum) // -> should print 2;
// Challenge 3
// if ((num % 2) == 0)
// console.log(true);
// else {
// console.log(false);
// Challenge 4
// let checkMe = [1, 2, 3];
// if (checkMe.length > 5){
// console.log(true);
// }
// else (checkMe < 5)
// console.log(false);
// if (checkMe.length > 5) {
// console.log(true);
// } else {
// console.log(false);
// }
//
// Challenge 5
// let isDivisibleBy4 = 34;
// if (isDivisibleBy4 % 5 === 3) {
// console.log(true);
// } else {
// console.log(false);
// }
// Challenge 6
// let count = 2;
// let count2 = 3;
// let i = 0;
// while (i < 4) {
// i++
// count += 2;
// count2 += 3;
// }
// uncomment the below line to check your work
// console.log('count: ' + count + ', count2: ' + count2) // -> should print 10 and 15
// Challenge 7
// let addThis = 0
// let sum = 0
// for (let i = 0; addThis.length > 10; i++)
// console.log(addThis.length[i]);
// let sum = 0
// for (let addThis = 0; addThis < 10; addThis++) {
// console.log(addThis);
// }
let sum = 0
for (let i = 0; i < 10; i++) {
// sum = smm + i
}
//console.log(sum);
// Challenge 8
//let countDown = 10;
// for (let x = 0; x < 10; x++)
// console.log(countDown)
// countDown--
// }
//while (countDown != 0){
// console.log(countDown)
// countDown--
//}
// uncomment the below line to check your work
// console.log(countDown) // -> should print 0;
// Challenge 9
let increaseByTwo = [1, 2, 3, 9];
for (let i = 0; i < increaseByTwo.length; i++){
increaseByTwo[i] = increaseByTwo[i] + 2
// console.log(increaseByTwo[i]);
if (increaseByTwo[i] >= 5){
console.log("condition is true", increaseByTwo[i]*10);
}
}
console.log(increaseByTwo)
// uncomment the below line to check your work
// console.log(increaseByTwo) // -> should print [3, 4, 5, 6, 7];
// Challenge 10
// uncomment the below line to check your work
// console.log(increaseByTwo) // -> should print [3, 4, 50, 60, 70];
// Challenge 11
let fillMe = [];
// uncomment the below line to check your work
// console.log(fillMe) // -> should print [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
// Challenge 12
let modifiedFillMe = [];
// uncomment the below line to check your work
// console.log(modifiedFillMe) // -> should print [10, 8, 6, 4, 2, 0]
// Challenge 13
let checkObj = {
oddNum: 1,
evenNum: 2,
foundNum: 5,
randomNum: 18
};
// Challenge 14
let objToArray = [];
// Challenge 15
// Challenge 16
let nestedArr = [];
// Challenge 17
// Challenge 18
// Challenge 19
let possibleIterable = [4, 3, 9, 6, 23];
// Challenge 20
let total = 0;
let sumMe = {
hello: 'there',
you: 8,
are: 7,
almost: '10',
done: '!'
};
以上是关于text 使用Copy to Gist创建的主要内容,如果未能解决你的问题,请参考以下文章
In excel copy the cell that contain the special text to the new collom
是否可以在 Elasticsearch 中获取 copy_to 字段的内容?