• GTG3000
    link
    fedilink
    English
    10
    edit-2
    7 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
      67 months ago

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

      • GTG3000
        link
        fedilink
        English
        27 months ago

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

          • GTG3000
            link
            fedilink
            English
            17 months ago

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

          • GTG3000
            link
            fedilink
            English
            17 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”.