Ad
Code
Diff
  • returnhundred = () => `${+!![]}${+![]}`**(+!![] + +!![])
    //returnhundred = () => ((![]).toString().length * ([] ** [] + [] ** [])) ** ([] ** [] + [] ** [])
    
    • returnhundred = () => ((![]).toString().length * ([] ** [] + [] ** [])) ** ([] ** [] + [] ** [])
    • returnhundred = () => `${+!![]}${+![]}`**(+!![] + +!![])
    • //returnhundred = () => ((![]).toString().length * ([] ** [] + [] ** [])) ** ([] ** [] + [] ** [])
Code
Diff
  • returnhundred=()=>+`${10**2}`
    • returnhundred = () => 100
    • returnhundred=()=>+`${10**2}`
Code
Diff
  • 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``
    • }
Code
Diff
  • 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;
Code
Diff
  • helloWorld = n => (n.split(" ")+' Hello')
    .split(" ")
    .reverse()
    .join(" ")
    
    • helloWorld = n => `Hello ${n}`;
    • helloWorld = n => (n.split(" ")+' Hello')
    • .split(" ")
    • .reverse()
    • .join(" ")
Code
Diff
  • 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;