Questions and Answers |
Already Graded A+
What must a variable begin with? - ANSWER ✔✔A letter, $ or _
What is a variable? - ANSWER ✔✔Container for a piece of data
Are variables case sensitive? - ANSWER ✔✔Yes
How do you declare variables? - ANSWER ✔✔using the var keyword
- eg. var myName="Monica";
What will an undeclared variable return? - ANSWER ✔✔Undefined
,Two types of variable scope? - ANSWER ✔✔Local and Global
What are the properties of a Local Scope? - ANSWER ✔✔Within a
function, only available within function
What are the properties of Global Scope? - ANSWER ✔✔Outside a
function, available to any code outside that function (also within).
What is Variable "Hoisting"? - ANSWER ✔✔Variables are hoisted to
the top of the function/statement. It is useful because you can refer to
variables declared later in the code.
What is best practice regarding variable declarations? - ANSWER
✔✔Put variable declarations as close to the top of the scope as possible.
Prototype Based - ANSWER ✔✔Each object has a prototype that it
inherits properties and abilities from
Dynamic Typing - ANSWER ✔✔Dynamic if the type of variable is
interpreted at runtime.
First Class Function - ANSWER ✔✔Treats functions as first class
citizens - you can do with functions everything you can do with other
elements.
, Multi Paradigm Language - ANSWER ✔✔Supports more than one
programming paradigm - developers can work with a variety of styles
within javascript.
DOM - ANSWER ✔✔Document Object model.
What is DOM? - ANSWER ✔✔Representation of HTML Page....
What are the two ways to add JS to your site? - ANSWER
✔✔Internally and Externally.
How do you add JS To your site internally? - ANSWER ✔✔Internally
using html <script></script> tag. Best practice to place it before closing
body tag .
How do you add JS to your site externally? - ANSWER ✔✔Add by
externally linking to .js files.
Is JS case sensitive? - ANSWER ✔✔Yes
JS Statement - ANSWER ✔✔A command that tells the browser what
to do.
document.write("hello world");
var myName="lorna";
COPYRIGHT©JOSHCLAY 2025/2026. YEAR PUBLISHED 2026. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
STATEMENT. ALL RIGHTS RESERVED
3