title: Type 'number' is not assignable to type '(...items: any[]) => number'
body: <p>I am doing an online course in Angular i know nothing about programming
  I can't find a solution to my problem what is wrong and where should i even look for my mistake
  I am using no strict mode</p>
  <p>My html code:</p>
  <pre><code>&lt;button
    class=&quot;btn btn-primary&quot;
    (click)=&quot;onToggleDetails()&quot;&gt;Display details&lt;/button&gt;
  &lt;p *ngIf=&quot;showSecret&quot;&gt;Secret password = tuna&lt;/p&gt;
  &lt;div *ngFor=&quot;let logAmount of log&quot;&gt;{{ logItem }}&lt;/div&gt;
  </code></pre>
  <p>My ts code:</p>
  <pre><code>import { Component } from '@angular/core';
  
  @Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css']
  })
  export class AppComponent {
    showSecret = false;
    log = [];
  
    onToggleDetails() {
      this.showSecret = !this.showSecret;
      this.log.push = (this.log.length + 1)
    }
  }
  </code></pre>
  <p>Any help and explanation would be appreciated !</p>