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 @doodleboy
and is their a way to stay in touch with others in this forum
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 @doodleboy
and is their a way to stay in touch with others in this forum
Thanks guys what a great experience this was! Keep up the good work!
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
Hello, @Grasshopper_Ben, I was wondering is pickrandom a javascript code or one that is used in the app, like print()?
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
@Grasshopper_Heather @Grasshopper_Ben
@Grasshopper_Frankie
#covid19 #uncategorized #coding-education
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
Sir… What are these math.floor() & math.ceiling()
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.
Oh… ok. Thank you
JS looks like an iceberg. There’s so much hidden under water.
Thank you for this reply! I will surely check this ‘‘JavaScript documentation’’.
Hi, I’m Alexander .
I just completed grasshopper app and I want to learn more about JavaScript. Also, are those certificates I received valid for anything.
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.
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
Thank you Pummarin for the information.
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:
!!! ??? ! Who are you gentil man. First introduce yourself…