+ 5
How to delete current characters in a string?
I want to remove the characters in string and let the user to reenter it
4 odpowiedzi
+ 3
Char *str = "sometaxt";
You can deal with char as array so you can say
str[5]='e';
+ 2
Reinitialize it to an empty string "'' ☺️
+ 1
var name = "john";
clearButton.onclick = function(){
name = "";
}
Simple, change value as empty string