async _fetchData() {
    const response = await fetch('./data.json');
    const dataArr = await response.json();

    window.addEventListener('DOMContentLoaded', this._render(dataArr));

    this._AddHandlerBtn(dataArr);
  }
/*
    1) Get the data from JSON file - [async - await]
    2) operate the _render function on the event of page loading
    3) operate the _addHandlerBtn function
   */
1) Get the data from JSON file - [async - await]
2) operate the _render function on the event of page loading
3) operate the _addHandlerBtn function
1 ) Get the data from JSON file - [ async - await ] 2 ) operate the _render function on the event of page loading 3 ) operate the _addHandlerBtn function
async _fetchData() {
    const response = await fetch('./data.json');
    const dataArr = await response.json();
    window.addEventListener('DOMContentLoaded', this._render(dataArr));
    this._AddHandlerBtn(dataArr);
  }
async _fetchData ( ) { const response = await fetch ( './data.json' ) ; const dataArr = await response . json ( ) ; window . addEventListener ( 'DOMContentLoaded' , this . _render ( dataArr ) ) ; this . _AddHandlerBtn ( dataArr ) ; }
1) Get the data from JSON file - [async - await]
2) operate the _render function on the event of page loading
3) operate the _addHandlerBtn function
1 ) Get the data from JSON file - [ async - await ] 2 ) operate the _render function on the event of page loading 3 ) operate the _addHandlerBtn function