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

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

[-] GTG3000@programming.dev 2 points 2 years ago

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

[-] ChairmanMeow@programming.dev 2 points 2 years ago

Why would you do such a horrible thing?

[-] GTG3000@programming.dev 1 points 2 years 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 2 years ago

At least trick them into leaning ts.

[-] GTG3000@programming.dev 1 points 2 years 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
1104 points (98.6% liked)

Microblog Memes

11028 readers
466 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. Your post must be a screen capture of a microblog-type post that includes the UI of the site it came from, preferably also including the avatar and username of the original poster. Including relevant comments made to the original post is encouraged.
  2. Your post, included comments, or your title/comment should include some kind of commentary or remark on the subject of the screen capture. Your title must include at least one word relevant to your post.
  3. You are encouraged to provide a link back to the source of your screen capture in the body of your post.
  4. Current politics and news are allowed, but discouraged. There MUST be some kind of human commentary/reaction included (either by the original poster or you). Just news articles or headlines will be deleted.
  5. Doctored posts/images and AI are allowed, but discouraged. You MUST indicate this in your post (even if you didn't originally know). If an image is found to be fabricated or edited in any way and it is not properly labeled, it will be deleted.
  6. Absolutely no NSFL content.
  7. Be nice. Don't take anything personally. Take political debates to the appropriate communities. Take personal disagreements & arguments to private messages.
  8. No advertising, brand promotion, or guerrilla marketing.

RELATED COMMUNITIES:

founded 2 years ago
MODERATORS