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

Microblog Memes

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

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 6 months ago (1 children)

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

[–] GTG3000@programming.dev 2 points 6 months ago (2 children)

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

[–] ChairmanMeow@programming.dev 2 points 6 months ago (1 children)

Why would you do such a horrible thing?

[–] GTG3000@programming.dev 1 points 6 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 6 months ago (1 children)

At least trick them into leaning ts.

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