title: How to call another function within the same object?
body: <pre><code>let role = {
      test: (variable) =&gt; {
          // How do I call toLog(variable) from here?
      },
      toLog: (variable) =&gt; {
          console.log(variable);
      }
  };
  </code></pre>
  
  <p>I'd like to call the toLog() function within the test() function but I'm unaware how to.</p>