This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = require('request'); | |
let MY_THINGS = []; | |
function getItems() { | |
let url = 'https://jsonplaceholder.typicode.com/todos/'; | |
return new Promise((resolve, reject) => { | |
request.get(url, (err, res, body) => { | |
if(err) reject(err); | |
if(res.statusCode !== 200) reject(res.statusCode); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Open first popup | |
2. click a button inside that popup | |
- save the current popup somewhere and close it | |
- show the login popup | |
- on clicking close button on login popup show the previous popup back | |
Solution: | |
1. Add a custom class to the "modal" & name it : "saveState" |