const finalValueAfterOperations = function(operations) {
let x=0;
for(let i = 0; i < operations.length; i++) {
console.log(operations[i])
if(operations[i].includes("+")) {
x++;
}else {
x--
}
}
return x
};