Weather Third Party API☁️
Note: If you are a beginner, this is something you need to know. Scroll the below section or
Click here
- You have to know difference between Login & Signup
- HTML form Tag
- HTML input field
- HTML Button
HTML DOM
- querySelector: retuns the first element within the document
that matches the specified CSS selctor. Example: const sampleElement =
document.querySelector('.sample').If there are mutltiple element with the class name
'sample' `querySelector` will return the first matching elements.
- You can also use getElementById, getElementByClassName, querySelectorAll etc
String charAt()
- The charAt(): method in JavaScript returns the character at a specified index in a string.
The index starts from 0. Example: const str = "Hello, World!";
const char =
str.charAt(7)
setTimeOut method()
- setTimeOut(function-name, millsec): that will execute the provided function after certain
millisecond.
clearTimeout(timeoutId) used to cancel time out if needded.
requestAnimationFrame()
- requestAnimationFrame(): works by calling the provided callback function before
the next repaint, allowing smooth animations.
Example
requestAnimationFrame(function_name);