JavaScript Flashcards
JavaScript is the _________ ________ for the Web
Programming Language
JavaScript can update and change both ____ and ___
HTML and CSS
Strings are text, written within double or single quotes:
True or False
True
In a programming language, ________ are used to store data values.
variables
JavaScript uses the ___ keyword to declare variables.
var or let
Write a simple JavaScript program that on button click displays the current timestamp on screen within the id tag “demo”.
My First JavaScript
// Using the id attribute
My First JavaScript
<button></button>
onclick=”document.getElementById(‘demo’).innerHTML = Date()”> // using the Date() function
Click me to display Date and Time.
// Using the id attribute