I am getting below line in my source file and I would like to sum
those values separated by pipe ("|")
There is no limit for the values coming in the line (might be 100 values
)
10|20|30|40|[no limit for values] - Separator is pipe "|"
The ouptput would be 100
Please help to write a javascript
function for the above query.
Regards Jay