Coding 1: Classes and Objects


An object’s type is a class. The class tells you what properties and methods that type of object has. Here is how you would write a class in JavaScript:

var FidgetSpinner=function(color,shape) {

FidgetSpinner.prototype.spin=function() {
 //Do something here


Now that we learned about classes we can make an object

var spinner=new FidgetSpinner("color","shape")

let’s spin the spinner




Step 6:

Write the code to make the conveyor belt move when the sensor detects something.(in this case the coin)

How it works:

  1. put an infinite loop
  2. put a wait block (wait block waits for sensor reflected light intensity greater than 20)
  3. next put a motor block (spin the motor one time)
  4. put a wait block that waits for ten seconds

Here is a link to the INSTRUCTIONS for the ULTIMATE candy MACHINE Part 1!!!!!!!!

See the ULTIMATE candy MACHINE in ACTION!!!!!!

Coding so so boring yet cool

Coding, boring yet cool. I hate it but i am doing it. My dad and I are making a card game called seven eight. I am learning  the computer language JavaScript. We hope for the card game to be done and available and ready to play in a few months.

I got to making the computer play after you play. I learned how to shuffle and distribute the cards. Here is a screenshot of the game:



I am an elementary student about to go to third grade. Are you wondering what i will tell you? If so : we will do cool Lego projects. I will also tell you a little about coding. I will add more things to this website so make sure to come back.

See yaa!