Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jan 14th, 2018 53 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. const axios = require('axios')
  2. // import axios from 'axios'
  3.  
  4. const Api = new Api()
  5.  
  6. Api.start()
  7.  
  8. class Api {
  9.   updateInterval
  10.  
  11.   start = () => {
  12.     this.updateInterval = setInterval(this.getUpdate, 1000)
  13.   }
  14.  
  15.   getUpdate = () => {
  16.     console.log('last 10 projects: ...')
  17.   }
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top