touch directory js code example Example: touch commend in cmd // create files using command in command prompt .. echo > sample.txt