Why does my JS function not return any results in Chrome Dev Console? : <p>My function compPlay() does not return any results in console. I have the function written to what I believe is correct as far as syntax goes and proper use of "Math random" and "Math" floor. Please help me.</p>

<pre><code> &lt;!doctype html&gt;
    &lt;html lang="en-us"&gt;

    &lt;head&gt;
        &lt;meta charset="UTF-8"&gt;
        &lt;title&gt;Rock Paper Scissor Game&lt;/title&gt;
        &lt;!-- CSS, STYLESHEET --&gt;
        &lt;link rel="stylesheet" type="text/css" href="assets/css/style2.css"&gt;
        &lt;!-- BOOTSTRAP --&gt;
        &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous"&gt;
        &lt;!-- JQUERY, 3.2.1 --&gt;
        &lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;

            function compPlay {
                const choices = ["rock", "paper", "scissors"]
                return choices([Math.floor(Math.random() * choice.length)];
            }
</code></pre>

<p><a href="https://i.stack.imgur.com/ymmrQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ymmrQ.jpg" alt="enter image description here"></a></p>
