Monthly Archives: August 2022

Working with Google Form Responses | Google Form

Working with Google Form Responses The form will sometimes provide suggested response options based on the question’s text. Enter “Are you” and it’ll suggest genders. Try “size” and it’ll list S, M, L, XL. “Do you like” will offer yes, no, and maybe. Ignore the suggestions Do nothing. The form will not add a response… Read More »

How to Add Questions to a Google Form | Google Form

How to Add Questions to a Google Form Add a question Click Untitled Questions and enter the text for what you want to ask. To make the question required, click the Required slider button.  You can duplicate the question by clicking the multiple page icon. Delete the question, by clicking the trashcan icon. Add an image to the question Click… Read More »

JavaScript Reserved Words

In JavaScript you cannot use these reserved words as variables, labels, or function names: abstract arguments await* boolean break byte case catch char class* const continue debugger default delete do double else enum* eval export* extends* false final finally float for function goto if implements import* in instanceof int interface let* long native new null… Read More »

JavaScript Performance

How to speed up your JavaScript code. Reduce Activity in Loops Loops are often used in programming. Each statement in a loop, including the for statement, is executed for each iteration of the loop. Statements or assignments that can be placed outside the loop will make the loop run faster. Bad: for (let i = 0; i <… Read More »

JavaScript Common Mistakes

This chapter points out some common JavaScript mistakes. Accidentally Using the Assignment Operator JavaScript programs may generate unexpected results if a programmer accidentally uses an assignment operator (=), instead of a comparison operator (==) in an if statement. This if statement returns false (as expected) because x is not equal to 10: Example: <!DOCTYPE html> <html> <body> <h2>JavaScript Comparisons</h2>… Read More »

JavaScript Best Practices

Avoid global variables, avoid new, avoid ==, avoid eval() Avoid Global Variables Minimize the use of global variables. This includes all data types, objects, and functions. Global variables and functions can be overwritten by other scripts. Use local variables instead, and learn how to use closures. Always Declare Local Variables All variables used in a function should be declared… Read More »

JavaScript Style Guide

Always use the same coding conventions for all your JavaScript projects. JavaScript Coding Conventions Coding conventions are style guidelines for programming. They typically cover: Naming and declaration rules for variables and functions. Rules for the use of white space, indentation, and comments. Programming practices and principles Coding conventions secure quality: Improves code readability Make code maintenance easier… Read More »

JavaScript Debugging

Errors can (will) happen, every time you write some new computer code. Code Debugging Programming code might contain syntax errors, or logical errors. Many of these errors are difficult to diagnose. Often, when programming code contains errors, nothing will happen. There are no error messages, and you will get no indications where to search for… Read More »

JavaScript JSON

JSON is a format for storing and transporting data. JSON is often used when data is sent from a server to a web page. What is JSON? JSON stands for JavaScript Object Notation JSON is a lightweight data interchange format JSON is language independent * JSON is “self-describing” and easy to understand * The JSON syntax is derived from… Read More »