SAIL Tech Talents Program Monday
We did Revision of All we've learnt till date
let myFunction = () =>
let myFunction = () => {
}
We call property and method,
respectivelySuper is a keyword used to make constructor accesible to other class from the parent class
Get is a keyword in javascript whose job is to bind an object property to a function when that function is accessed
get is a keyword not method
get helps in data security
Finally we were given a class work to be done
We designed a SquareRoot Calculator
always accept string, you need to convert it to number if needed has a global scopewhile
and
has block level scope has the format below;for a single line of code use this
for a multi line of code that return value
file created are: dom.html dom.js
It is simply short hand for document Object Model. Technically its an API used for affecting the contents of a webpage.
We continued with the already created files below: dom.html dom.js
Created 2 new file, which are:
domTraversal.html domTraversal.js
while for map forEach
if the item to iterate is not a Nodelist, kindly convert it to Nodelist (Array) using the code below
Format with cases
document.querySelector("li")
document.querySelectorAll("li")
document.querySelector(".classname")
document.querySelector("#idname")
document.querySelector(["attributeName"])
We did a project called
HOW TO CREATE ELEMENT and Tags Using DOM Created new file, which are:
domAddRemoveElement.html domAddRemoveElement.js
Usuaally webpages are built so that users can be
which are;
onclick onchange onmouseover onmouseout onmousedown onmouseup onload
We can listen for click events in javascript using the onclick property. This is usually assigned to Function
We can listen for change events in javascript using the onchange property. This is also usually assigned a function.
This is a very
We created the files below: mediaquery.html mediaquery.css
We created the files below: addNumbers.html addNumbers.css addNumbers.js rps.html rps.css rps.js
By default, windows prompt Output is STRING, hence you need to convert it to Integer using ParseInt
We also did Rock, Scissors and Paper game
R&D
For blockchain Training
https://consensys.net/academy/online-programs/
We created the files below:
We continued the Rock, Scissors and Paper game
API
Application Programming interface: it is a software intermediary that allows two applications to communicate and share data
openweathermap.org
R&D
Agriculture analytics https://openagro.uk/
We created the files below, for a food recipe websites
foodRecipes.html foodRecipes.css foodRecipes.js