1103
you are viewing a single comment's thread
view the rest of the comments
[-] GTG3000@programming.dev 10 points 5 months ago* (last edited 5 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 6 points 5 months ago

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

[-] GTG3000@programming.dev 2 points 5 months ago

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

[-] ChairmanMeow@programming.dev 2 points 5 months ago

Why would you do such a horrible thing?

[-] GTG3000@programming.dev 1 points 5 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@lemmy.world 2 points 5 months ago

At least trick them into leaning ts.

[-] GTG3000@programming.dev 1 points 5 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".

this post was submitted on 18 Apr 2024
1103 points (98.6% liked)

Microblog Memes

5412 readers
2196 users here now

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, ~~Twitter~~ X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

Rules:

  1. Please put at least one word relevant to the post in the post title.
  2. Be nice.
  3. No advertising, brand promotion or guerilla marketing.
  4. Posters are encouraged to link to the toot or tweet etc in the description of posts.

Related communities:

founded 1 year ago
MODERATORS