Posts

javajuggler, to javascript

Could someone help me solve this problem with javascript? Palindrome Check: Write a function to check if a string is a palindrome. he's number 3 on this list - https://chat-to.dev/post?id=141

HuntressHimbo, (edited )

Hi, I don’t think giving you the answer directly will help you learn it, but I can give you some general tips for this.

First here is the MDN documentation for the string type: developer.mozilla.org/en-US/docs/Web/…/String

On the left hand side you should see a column with methods the string type contains. You can use several of these to accomplish a palindrome check. String.slice(), String.charAt(), String.at(), String.match(), and String.substring() are all methods that you can use to write your check.

In addition to those, I would recommend looking at String.toLowerCase()/String.toUpperCase() to avoid issues with capitalization, and String.trim() to avoid trailing or leading whitespace.

Also you will need a variable to store your result, my general recommendation is to start this variable as true and set it to false when you detect any inconsistency, and probably one to store the index you are currently checking. Last little tip is that many String methods accept negative indices to count from the end rather than from the start. Good luck!

One more giant tip because I don’t know what your experience with JavaScript is, but pay attention when comparing that you don’t use == when you should use === and vice versa. The difference is that == will try to coerce the values to the same type before comparison, which can lead to.unintuitive behavior

javajuggler,

@HuntressHimbo
thanks for the tip

javajuggler, to programming

Why use chat-to.dev compared to other technologies

It's better than stack overflow because you can have a conversation if you need help instead of having a long comment thread. It's better than IRC because the feed exists even when you're not online, without you having to create an inbox bot. It's better than discord because discord is a ball. And it's better than language-specific forums because sometimes you just have a general question that isn't framework/lang specific. So don't waste time and register now and have fun programming. https://chat-to.dev

javajuggler, to programming

hello my username is JavaJuggler i am a programmer and i love to create things that help people in their daily lives. i am the creator and developer of https://chat-to.dev which is a site where programmers of all levels can create chat rooms to talk, share, teach and learn things related to programming. with this i decided to invite you to visit my site and enjoy all the features it contains. give me feedback if you visit my site. thanks

javajuggler, to python

here is some good content for those who want to learn python in a free and efficient way. join the site. https://chat-to.dev/post?id=298

javajuggler, to webdev

what ways do you use to make money from your websites? i'm thinking of creating one and monetizing it

MajorHavoc, (edited )

I earn my money selling my skills to people who think they’re going to make money from making a website.

My logic is that - During the California gold rush, pickaxes sellers fared much better than gold miners.

Edit: I’ve had various personal websites for decades. They haven’t earned me a dime, directly. But indirectly, they make an amazing professional portfolio.

cosmic_cowboy,
@cosmic_cowboy@reddthat.com avatar

I know this may not answer your question, but I would suggest to flip your thinking pattern.

By creating a solution that’s looking for a problem, you’re likely to not add much value to a prospective customer.

Instead, look at some of the problems and friction points in your own life, and see if you can create a solution to those problems.

Worst case scenario: you make your life easier, even if you don’t make any money. Best case scenario: Other people have this problem too, and might pay you to solve it for them.

javajuggler, to programming

have you ever done anything with Luan? what was your experience like?

TheOneCurly,

Uhh, based on the website I don’t think anyone should really be using this. www.luan.software/why.html

It starts fairly normal, takes a turn towards religious, takes a further turn into far right, then goes on for a bit of orientalism, then goes back to tech stuff.

TheOneCurly,

And as far as I an tell, unlicensed. There at least isn’t one in the mercurial repo or on the site anywhere I can find. I would definitely not recommend using unlicensed code in anything other than a personal use only project.

javajuggler, to technology

If you like writing intelligent articles about programming, software development and taking part in code challenges in various languages, then here's a very interesting website for you. Come and join in and let's have fun programming and developing things. https://chat-to.dev/new

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • thenastyranch
  • magazineikmin
  • ethstaker
  • khanakhh
  • rosin
  • Youngstown
  • everett
  • slotface
  • ngwrru68w68
  • mdbf
  • GTA5RPClips
  • kavyap
  • DreamBathrooms
  • provamag3
  • cisconetworking
  • cubers
  • Leos
  • InstantRegret
  • Durango
  • tacticalgear
  • tester
  • osvaldo12
  • normalnudes
  • anitta
  • modclub
  • megavids
  • lostlight
  • All magazines