JavaScript tutorial (Part 1)

that's so sad :cry:

And imma blame it on my admins if I fail 7th grade again.

I think you failed classes is not because you're dumb or you are bad memorizing things. maybe it's because you can't focus during classes that you don't like, you had bad teacher who talk to fast.or maybe you can't focus when reviewing for test. Cuz Your Writing skill is pretty decent. Also you are good at art and creative.

I can't focus at all, I used to have medication to try to help me stop being hyper and help me to focus, but I stopped using them because it was a waste of time getting them.

Haha, I have a teacher that has a high-pitched voice, kinda sounded like a chipmunk, I had more than 100 headaches that year. 0_0

Khan Academy is unblocked y'all!!!!! :D

1 Like

Good news guys, I'm learning JS, HTML, CSS, and advanced JS, on Khan Academy. :)

Maybe you can use Khan Academy to help you with school

maybe.

sounds horrifying, without a computer, because I do my work on a computer.

I also do work on Computer.

I do all of my work on a computer.

OK, then I guess my experience can't help u, you should find a way by urself

Ok, that is fine by me, because I like to do things by my own style...

var eyeSize;
eyeSize = 36;

That works, but you can put them both on the same line: var eyeSize = 36;

Oh, okay!

You can do that if you want to make a global variable that is defined inside a function.

var myVar;

function define(val) {
  myVar = val;
}

define("foo");
console.log(myVar); //"foo"

A more practical situation:

var canvas, ctx

function update() {
  ctx.fillStyle = "black"; //set fill color to black
  ctx.fillRect(0, 0, canvas.width, canvas.height); //fill entire screen
}

function init() {
  canvas = document.getElementById("game");
  ctx = canvas.getContext("2d");

  (function anim() {
    requestAnimationFrame(anim);
    update();
  })();
}

window.onload = init; //
1 Like
background(186, 145, 20) //background
ellipse(200, 200, 350, 350) //something

There is some bad news though, all the videos for the programming language lessons are blocked.

Note:a lot of ka js is processing js not regular js.