This file contains hidden or 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
axios.get('https://jsonplaceholder.typicode.com/posts?_limit=5') | |
.then(response => { | |
const data = response.data; | |
console.log(data); | |
}) | |
.catch(error => { | |
console.error(error); | |
}); | |
axios.get('https://jsonplaceholder.typicode.com/posts?_limit=5&_sort=title&_order=asc') |
This file contains hidden or 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
for nodejs just copy and run below command | |
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\ | |
sudo apt-get install -y nodejs | |
for nvm | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash | |
then just refresh the bashrc file |
OlderNewer