vocabulary book for Harbor / Javascript

vocabulary book for Harbor / Javascript

Postby Otto » Tue Jan 07, 2020 8:43 am

Good morning.
Every student who starts learning a foreign language begins with a vocabulary book.
I think we also need a vocabulary book for Harbor / Javascript.
What do you think?

Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: vocabulary book for Harbor / Javascript

Postby Otto » Tue Jan 07, 2020 8:45 am

The vocabulary booklet should show for the most common problems how to do this with HTML and javascript.
I also mean simple things like STRTRAN, STR, INT, etc. and e.g., calling functions with parameters, etc.
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: vocabulary book for Harbor / Javascript

Postby Otto » Tue Jan 07, 2020 8:50 am

Andreu;
str
-> value.toString()
int
-> parseInt(value)

strtran



currently the only easy way to do strtran is if you can turn the string to search for into a regexp pattern
since str.replace(search, replace) will only replace the first match

you can even do parseInt(value, 16) for parsing as hex



but there's a replaceAll method going through the rounds, and it'll hopefully land this year



https://github.com/tc39/proposal-str ing-rep laceall
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests