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

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

      • GTG3000
        link
        fedilink
        English
        28 months ago

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

          • GTG3000
            link
            fedilink
            English
            18 months ago

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

        • @fidodo
          link
          English
          28 months ago

          At least trick them into leaning ts.

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