how to get textedit on mac without download

JavaScript
/* one of two ways:

	1.using launchpad
    2.using a slightly more complicated way that I found
    
    1.
    
    go to launchpad and type in text and it'll pop up.
    this is not a coding version, however.
    
    
    2.
    
    go to a different editor like sublime text. (free,works on most operating systems)
    
    press command shift s and save the file as a .txt
    
    open up the file
    open it up in your browser as well
    
    go into the text editor(top left corner says TextEdit)
    
    press command shift s again
    save the new file as a .html(or any other language.
    be aware i haven't tested this out with anything but html and javascript)
    PRESS ENTER
    it should work now!
*/
Source

Also in JavaScript: