justsj11 / RPG

Role Playing Game

Home Page:https://rpgbyjustsj11.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NEXT LEVEL JAVASCRIPT

1.Object destructuring
2.The .map() method
3. The .join() method
4. Returning a function inside a function
5. Creating new arrays with the array constructor.
6. The .fill() method

Object Destructuring

An easier way to extract data from objects.

.map() method

An inbuilt Javascript method to iterate over arrays

.join() method

An inbuilt Javascript method to create strings from arrays

1. Concatenates the elements of an array into a string.
2. Lets you choose how the elements are seperated.
3. Returns the new string.

.fill() method

1. It converts the elements in an array to a given static value.

Module 2 Constructor Functions

What we'll be covering 1. Constructor Functions 2. Breaking up our code into multiple files. 3. Other JS Goodies.

Constructor Function: Templates for Objects.

Methods

1. Properties on objects that contain functions.
2. If yoou can write a function, you can write a method.

Object.assign

1. Copues properties from a source object to a target object.
2. Returns a new version of the target object.

Module 3 The gameplay

1. The .reduce() method
2. Arrow Functions : A Javascript notation used in ES6
3. setTimeOut()
4. Plenty more JS goodies.

2. Arrow Functions : A Javascript notation used in ES6

    1. If you have one parameter, you donot need brackets.
    2. If you have zero or two parameters, you need brackets.
    3. You can return one line of code without curly braces or the return keyword.
    4. More complex logic requires the curly braces and the return keyword.

STRETCH GOALS

1. Add realistic Dice.
2. Change the rules of the game.
3. Add more heroes
4. Restyle the entire app.

About

Role Playing Game

https://rpgbyjustsj11.netlify.app/


Languages

Language:JavaScript 52.5%Language:CSS 40.1%Language:HTML 7.4%