• GTG3000
    link
    fedilink
    English
    10
    edit-2
    2 months ago

    On PC, you can open the browser console and type in

    ("your string").toUpperCase()
    

    it’s usually on F12.

    >> "Al".toUpperCase()
    <- "AL" 
    
    • @fidodo@lemmy.world
      link
      fedilink
      English
      62 months ago

      Simply pasting the string would give you the answer as the console uses a programming font

      • GTG3000
        link
        fedilink
        English
        22 months ago

        Fair, but I’m trying to trick them into learning js here :P

          • GTG3000
            link
            fedilink
            English
            12 months ago

            Man, I wish you could just use TS without some kind of preprocessor.

            But I also wish JS had less footguns like “oh, this function returns an array-like object that has half of array methods… But not the one you want right now”.

          • GTG3000
            link
            fedilink
            English
            12 months ago

            Well, ignoring the mire of ancient bad idea compatibility, it’s nice to just have a REPL wherever you have a browser.