Javascript


#1

how do i clear whitspaces using methods


#2

you could use trim:

console.log("   test   ".trim())

see docs: