returnhundred = () => `${+!![]}${+![]}`**(+!![] + +!![]) //returnhundred = () => ((![]).toString().length * ([] ** [] + [] ** [])) ** ([] ** [] + [] ** [])
returnhundred = () => ((![]).toString().length * ([] ** [] + [] ** [])) ** ([] ** [] + [] ** [])- returnhundred = () => `${+!![]}${+![]}`**(+!![] + +!![])
- //returnhundred = () => ((![]).toString().length * ([] ** [] + [] ** [])) ** ([] ** [] + [] ** [])
const helloWorld = n => { return [n,...[...'Hello '] .map(el => el.charCodeAt()) .reverse() .map(num => String.fromCharCode(num)) ] .reverse() .join`` }
const helloWorld = n => `Hello ${n}`- const helloWorld = n => {
- return [n,...[...'Hello ']
- .map(el => el.charCodeAt())
- .reverse()
- .map(num => String.fromCharCode(num))
- ]
- .reverse()
- .join``
- }
isEven = x => [!0,!1][x%2] // Previous iteration //isEven = x => [true,false][x%2] // Previous iteration //const isEven = x => !(Number.isInteger(+x))? undefined : !(x%2) // Previous iteration // isEven = x => !x || !Number.isInteger(x) ? undefined : x % 2 ? false : true; // Previous iteration // isEven = x => x!=~~x?undefined:!(x%2); // Previous iteration // isEven = num => num % 2 === 0 ? true : num % 1 === 0 ? false : undefined; // Previous iteration // function isEven(num) { // return num % 2 === 0 ? true : num % 1 === 0 ? false : undefined;
isEven = x => [true,false][x%2]- isEven = x => [!0,!1][x%2]
- // Previous iteration
- //isEven = x => [true,false][x%2]
- // Previous iteration
- //const isEven = x => !(Number.isInteger(+x))? undefined : !(x%2)
- // Previous iteration
- // isEven = x => !x || !Number.isInteger(x) ? undefined : x % 2 ? false : true;
- // Previous iteration
- // isEven = x => x!=~~x?undefined:!(x%2);
- // Previous iteration
- // isEven = num => num % 2 === 0 ? true : num % 1 === 0 ? false : undefined;
- // Previous iteration
- // function isEven(num) {
- // return num % 2 === 0 ? true : num % 1 === 0 ? false : undefined;
const isEven = x => !(Number.isInteger(+x))? undefined : !(x%2) // Previous iteration // isEven = x => !x || !Number.isInteger(x) ? undefined : x % 2 ? false : true; // Previous iteration // isEven = x => x!=~~x?undefined:!(x%2); // Previous iteration // isEven = num => num % 2 === 0 ? true : num % 1 === 0 ? false : undefined; // Previous iteration // function isEven(num) { // return num % 2 === 0 ? true : num % 1 === 0 ? false : undefined;
isEven = x => !x || !Number.isInteger(x) ? undefined : x % 2 ? false : true;- const isEven = x => !(Number.isInteger(+x))? undefined : !(x%2)
- // Previous iteration
- // isEven = x => !x || !Number.isInteger(x) ? undefined : x % 2 ? false : true;
- // Previous iteration
- // isEven = x => x!=~~x?undefined:!(x%2);
- // Previous iteration
- // isEven = num => num % 2 === 0 ? true : num % 1 === 0 ? false : undefined;
- // Previous iteration
- // function isEven(num) {
// return num % 2 === 0 ? true : num % 1 === 0 ? false : undefined;// }- // return num % 2 === 0 ? true : num % 1 === 0 ? false : undefined;