I agree with @vingtetun that this code block is weird and not maintanable. Also I'm missing the break statement for each case. You can go for another more elegant solution which is to have an object like

```js
var stateMapping = {
  'unknown': 'unknownSimCardState',
  'absent': 'noSimCard',
 
}

var msg = stateMapping[cardState];

if(msg) {
   this. simSecurityDesc.textContent = msg;
  // And possibly the other stuff 
}

```