How to concatenate two parameters

this.level= this.navParams.get(‘level’);
this.exercise= this.navParams.get(‘exercise’);
this.exel= this.exercise + this.level;

is this the right way ??
and if it is why am i not getting any response in console.log

probably not !!!
you have to manage those variable according to requirement

this.level= this.navParams.get(‘level’);
this.exercise= this.navParams.get(‘exercise’);
this.exel={
   exercise:this.exercise ,
   level:this.level
} 

it depends on the type of your variables. Your variable have to be to the same type or you will need to convert them:

if they are string or int :
this.exel = this.level+this.exercise will work

if they are both array :
this.exel = this.level.concat(this.exercise);

if they are both Objects :
this.exel = Object.assign(this.level, this.exercise);

Can you show your console error to help you more?

thank you it solved my problem