When I console.log the result in subscribe it's ok, but the value of my variable jokes isn't updated.

I also wonder why second console.log is issued before the first one. In my code it's in this order :
getNewJoke(): void {
this.chuckService.getJokes().subscribe({next(data) {this.jokes = [{randomJoke: data.value}];
console.log('joke in subscribe -----------------------', data.value); }}) ;
console.log('joke outside subscribe -----------------------', this.jokes);
}
Thanks a lot.