Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Calling a class method from the constructor

You're calling the function init(), not the method init of either Base or the current object. No such function exists in the current scope or any parent scopes. You need to refer to your object:

this.init();

You are missing this keyword:

this.init();

Tags:

Javascript

Ecmascript 6

Related

Deep copy an array in Angular 2 + TypeScript What features do Progressive Web Apps have vs. native apps and vice-versa, on Android Custom Action controller, Swift nodejs websocket detect disconnected socket Swift - Downloading video with downloadTaskWithURL Git and IntelliJ lines separator issue Download Build binaries from Visual Studio Team Services lodash _.find all matches What is the use case of @Import annotation? Custom converter for Retrofit 2 Largest product in a series in python Send auth_token for authentication to ActionCable

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy