Posts

Showing posts from November 27, 2018

1979

Image
  Nota: Para outros significados, veja 1979 (desambiguação). Ano completo Ano comum com início à segunda-feira SÉCULOS: Século XIX — Século XX — Século XXI DÉCADAS: 1920 • 1930 • 1940 • 1950 • 1960 • 1970 • 1980 • 1990 • 2000 • 2010 • 2020 ANOS: 1974 • 1975 • 1976 • 1977 • 1978 • 1979 • 1980 • 1981 • 1982 • 1983 • 1984 Outros projetos Wikimedia também contêm material sobre este tema: Textos originais no Wikisource Wikisource 1979 em outros calendários Calendário gregoriano 1979 MCMLXXIX Ab urbe condita 2732 Calendário arménio N/A Calendário chinês 4675 – 4676 Calendário judaico 5739 – 5740 Calendários hindus - Vikram Samvat - Shaka Samvat - Kali Yuga 2034 – 2035 1901 – 1902 5080 – 5081 Calendário persa 1357 – 1358 Calendário islâmico 1399 – 1400 Calendário rúnico 2229 1979 ( MCMLXXIX , na numeração romana) foi um ano comum do Século XX que começou num

Axios prints value on console but returns undefined

Image
up vote 0 down vote favorite I have quite an issue for some time and is getting on my nerves and it doesn't make sense. I have used axios on my react frontend and it works perfect when assigning the get value to the state. But when using it in a normal javascript code, I appear to have this following issue: i can print the object's value in the console but it will return only undefined.. Here is my code: login = () => { let data; axios.get('https://myaddress/authenticate') .then(response => { data = response; console.log('data here', data); }) .catch(error => { console.error('auth.error', error); }); console.log('eee', data); retu