var storageRef = firebase.storage().ref();
var ref = storageRef.child('nothing.txt');
ref.putString('nothing');
This is my code. put() function works without any problem but putString() gives an error on the browser:
Uncaught TypeError: ref.putString is not a function