Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.06 KB

File metadata and controls

32 lines (21 loc) · 1.06 KB

THINGS TO LOOK UP

MD file language https://www.ionos.com/digitalguide/websites/web-de

Look up the different methods that can be issued to a Javascript Variable like the exapel bel;owß const numberButton = document.querySelectorAll('[data-number]') const operationButton = document.querySelectorAll('[data-operation]') const equalsButton = document.querySelector('[data-equals]') const deleteButton = document.querySelector('[data-delete]') const allClearButton = document.querySelector('[data-all-clear') const previousOperandTextElement = document.querySelector('[data-previous-operand]') const currentOperandTextElement = document.querySelector('[data-current-operand]')

JavaScript Class Syntax https://www.w3schools.com/js/js_classes.asp - Use the keyword class to create a class. - Always add a method named constructor(): - A JavaScript class is not an object. It is a template for JavaScript objects.

Example below: class ClassName { constructor() { ... } }

When is it appropriate to use a javascript CLASS as opposed to any other data structure ?