Move History

Rooted by: Return 100
Fork Selected
  • Code
    function returnhundred() 
    {
      return (''+[][0]).charCodeAt(2)
    }
    Preloaded Code
    function returnhundred() {
    
    }
    Test Cases Failed
    // TODO: Add your tests here
    // Starting from Node 10.x, [Mocha](https://mochajs.org) is used instead of our custom test framework.
    // [Codewars' assertion methods](https://github.com/Codewars/codewars.com/wiki/Codewars-JavaScript-Test-Framework)
    // are still available for now.
    //
    // For new tests, using [Chai](https://chaijs.com/) is recommended.
    // You can use it by requiring:
    //     const assert = require("chai").assert;
    // If the failure output for deep equality is truncated, `chai.config.truncateThreshold` can be adjusted.
    describe("", () => {
      it("", () => {
        Test.assertEquals(returnhundred(),100)
      })
    })
    
    
  • Code
    • function returnhundred() {
    • return (undefined +"")[2].charCodeAt();
    • function returnhundred()
    • {
    • return (''+[][0]).charCodeAt(2)
    • }