s="code-comment">
                                // create a new Vec3 vector and chain methods
                            </div>

                            <div>
                                <span class="code-var">const</span> vector = <span class="code-var">new</span> <span class="code-tag">Vec3</span>().<span class="code-tag">addScalar</span>(<span class="code-number">2</span>).<span class="code-tag">normalize</span>()<span class="code-var">;</span>
                            </div>

             