Super-charge your coding skills!

yes you are right but you can make android apps in pc by react-native(most probably)
but is their a option to make it in android itself
btw thanks for your reply :hugs:@doodleboy

and is their a way to stay in touch with others in this forum

1 Like

Thanks guys what a great experience this was! Keep up the good work!

1 Like

i want to know i choosed free code camp to compelet so i have to start a new language or there is some skills about java script and if i want to make a webpage i have to now mor about html and css or what i taked enough :slightly_smiling_face:

1 Like

Hello, @Grasshopper_Ben, I was wondering is pickrandom a javascript code or one that is used in the app, like print()?

1 Like

A big thank to Grasshopper team.
I found this while searching for some e-learning apps during lockdown and now I can proudly say I have learnt something during this pandemic period.

If mods and admins are active, then do share links of other learning programs by google. Thanks :slight_smile:
@Grasshopper_Heather @Grasshopper_Ben
@Grasshopper_Frankie

#covid19 #uncategorized #coding-education

1 Like

Hey there, pickRandom() is a Grasshopper function.

JavaScript has a built-in function called Math.random() that returns a random number between 0 and 1 (for example, 0.61). You can use this with other Math functions to create something like pickRandom(), like this:

function pickRandom(argument) {
  if (typeof argument === 'number') {
    return Math.floor(Math.random() * Math.floor(argument)) + 1;
  }
  if (Array.isArray(argument)) {
    return argument[Math.floor(Math.random() * argument.length)];
  }
}

The JavaScript documentation at MDN has some great information on what you can use and how to use it. Take a look at “Built-in Objects” on the sidebar on the left.

As usual, let me know if you have any questions!
Ben

8 Likes

Sir… What are these math.floor() & math.ceiling()

1 Like

We don’t teach them in the app, but they are built in math functions. Math.floor rounds a number down, for example: Math.floor(1.34) would return 1.

Math.ceiling() rounds up.

You can read more about JavaScript’s math functions here.

4 Likes

Oh… ok. Thank you :slight_smile:

JS looks like an iceberg. There’s so much hidden under water. :grimacing:

1 Like

Thank you for this reply! I will surely check this ‘‘JavaScript documentation’’.

Hi, I’m Alexander :wink:.
I just completed grasshopper app and I want to learn more about JavaScript. Also, are those certificates I received valid for anything.

1 Like

@Akinbiyi_Alexander

Read this if you haven’t already

you,re only 15 and I’m only 13

Thanks a lot
I learned much from grasshopper. Do they have any courses ?

Wow! What an interesting and exciting journey into coding. The outlay of the Grasshopper program is superb. Introduction 1 & 2, thrusts somebody into coding. Was anticipating harder topics, but Array methods and Animation 1 & 2 were so cool, like sliding down a mountain top. Kudos to the Grasshopper team, you have really ‘lux fiat’ (show the light) in dark world of coding. You are ‘primus enterpere’ (best among equals) Will keep the coding vision alife. Thanks a lot.

2 Likes

I have learnt i lot of thing and i am currently making a small car racing game but i am not able to detect obstacle please tell how can i write a code that can do something when an object touches other please tell?

You can also learn coding with W3Schools. Also, you can learn coding with freecodecamp.org as well.

Thanks,
Pummarin :slightly_smiling_face:

Thank you Pummarin for the information.

2 Likes

Pls sir I was notified that you blocked my topic, and I confused. Pls I ain’t angry, but I just want to know why u did. Pls reply​:frowning::frowning::sob::disappointed_relieved::disappointed_relieved::cry::worried::cry::disappointed_relieved::white_large_square:

!!! ??? ! Who are you gentil man. First introduce yourself…