feel free to study theese codes that i made

click here if you want HTML code to a dino game

click here if you want HTML code to a tetris game

click here if you want HTML code to a packman game

click here if you want HTML code to a flappy bird game

click here if you want HTML code to a number game

JAVA CHEAT SHEET

make a link :

let text = "DISCRIPTION OF WEBSITE";let result = text.link("LINK TO WEBSITE");

Delay - 1 second timeout :

setTimeout(function () { }, 1000);

Output :

console.log(a); document.write(a); alert(a); confirm("Really?"); prompt("Your age?","0");

Comments :

/* Multi line comment */ // One line

make a string:

let text = "type here what you want to display";

make an if statment

if (varied condition) { what you want to happen; }

make a heading

var x = document.createElement("H1");

make a function

function name(parameter1, parameter2, parameter3) { // code to be executed }

make a standard varaible

type variableName = value;

make a number varaible

int myNum = 15; System.out.println(myNum);

change the value of a variable

int myNum = 15; myNum = 20; // myNum is now 20 System.out.println(myNum);

make a varaible that will never change

final int myNum = 15; myNum = 20;

In JavaScript, almost "everything" is an object.

Booleans can be objects (if defined with the new keyword) Numbers can be objects (if defined with the new keyword) Strings can be objects (if defined with the new keyword) Dates are always objects Maths are always objects Regular expressions are always objects Arrays are always objects Functions are always objects Objects are always objects

make a Boolean (true or false function)

Boolean(10 > 9)

f a variable is declared but the value is not assigned, then the value of that variable will be undefined. For example,

let name; console.log(name); // undefined

it is also possible to explicitly assign undefined to a variable. For example,

let name = "Felix"; // assigning undefined to the name variable name = undefined console.log(name); // returns undefined

In JavaScript, null is a special value that represents an empty or unknown value. For example,

let number = null;

An array is a special variable, which can hold more than one value:

const cars = ["Saab", "Volvo", "BMW"];

Use the keyword class to create a class.Always add a method named constructor():

EXAMPLE:class Car { constructor(name, year) { this.name = name; this.year = year; } }