Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const axios = require('axios')
- // import axios from 'axios'
- const Api = new Api()
- Api.start()
- class Api {
- updateInterval
- start = () => {
- this.updateInterval = setInterval(this.getUpdate, 1000)
- }
- getUpdate = () => {
- console.log('last 10 projects: ...')
- }
- }
Add Comment
Please, Sign In to add comment