As above - it won't make a difference to learning the basics. It's a pure preference thing.
I've run foams for years, and when I haven't I've had BMX grips.
Don't go out of your way to get lock-ons because big-name riders talk about them in their vlogs - I repeat, it's a preference.
In fact I've tried several types of lock-on grips over the years and found them all really horrible. Gross in the hand and I don't trust that they won't come undone and just fly off the bar. (For other people reading: Yes, I know how unlikely that is, but try ignoring your own phobias )
I'd also just like to make this point:
I saw your other thread asking about changing tyres in the name of progression, and get the impression you might think this way in general.
Please just note that trials is hard. It has an incredibly steep learning curve, and unless you enjoy the challenge it can seem not-very-fun until you get over the initial hump in difficulty and can start playing with it rather than working for it.
It is a very fun sport, but it's very difficult, and no amount of equipment upgrades will push you past the learning process. That's all down to you.
So don't worry about changing things on your bike. For the first year of riding trials I was on one of these:
I could sidehop picnic benches on that thing.
I think you said you had an Echo 24"? Don't worry about a thing. They're really good bikes, and unless something breaks, I don't imagine you'll want to change anything for a couple of years or so.
Even then, I strongly recommend only changing things if you have a specific reason for it. Like a longer stem if you feel like your posture is very hunched over compared with what you see in other people.
Just get out on your bike as much as you can and enjoy it - the payoff is immense when you start getting the hang of things!
Edit: I would also just mention that if you're having a lot of trouble with one particular thing and you're not enjoying trying to overcome it, put it to one side and try something else.
You're riding for enjoyment, remember
If you're struggling with it but enjoying the fight, then by all means keep at it.