I am trying to shorten my code with this conditional statement
I have
  if(title =='project'){
      title = text + ': ' + this.projectTitle;
  }else{
      title = this.projectTitle;
  }
I feel like there is a better way to rewrite this. Does anyone have idea of how to do it?
Thanks!
 
     
     
     
     
     
    