Document.QuerySelector to fill a unique value with prepend and append

I am trying to use a JS code to fill up elements with their already filled up values as desribed in the table link image below:

enter image description here
For this code below, what modifcation will be required to get the desired final value?

var data = document.querySelectorAll("[id^='1253']").forEach(x => x.value
if( data > 0){
  var result = '(' + data + ')'
  document.querySelectorAll("[id^='1253']").forEach(x => x.value = result)
}