What is JavaScript?
JavaScript (js) is a scripting or programming language that allows you to implement complex features on web pages — every time a web page does more than just sit there and display static information for you to look at — displaying timely content updates, interactive maps, animated 2D/3D graphics, scrolling video jukeboxes, etc. — you can bet that JavaScript is probably involved. It is the third layer of the layer cake of standard web technologies.
Why use JavaScript?
Because it enables you to create dynamically updating content, control multimedia, animate images, and pretty much everything else which will make you're website more dynamic.
JavaScript Examples:
function updateDisplay() {
// select the element with class of `calculator-screen`
const display = document.querySelector('.calculator-screen');
// update the value of the element with the contents of `displayValue`
display.value = calculator.displayValue;
}
const para = document.querySelector('p');
para.addEventListener('click', updateName);
function updateName() {
let name = prompt('Enter a new name');
para.textContent = 'Player 1: ' + name;
}
This is a Cheat Sheet for Javascript.
These Links that will be useful for learning JavaScript
https://developer.mozilla.org/en-US/docs/Web/JavaScript
https://www.freecodecamp.org/
https://www.theodinproject.com/paths
This is one of the most useful resources for learning to be a web developer.
https://www.w3schools.com/js/default.asp
Useful tips for learning JavaScript
Follow a well-strutured curriculum like freecodecamp's curriculum
Start with the fundamentals but don’t do tutorials endlessly