This document provides a summary of key concepts in JavaScript including:
1. Data types in JavaScript include strings, booleans, integers, floating point numbers, null, and objects. Variables are used to store and manipulate data in JavaScript.
2. Control structures allow changing the order of operations and include conditional statements like if/else and switch as well as loops like for, while, and do/while.
3. Conditional statements like if/else and switch evaluate conditions and allow different code to execute depending on the results. Loops repeat a block of code while a condition is true.
offered for free use by the user "skyhawk133" at dreamincode.com, http://www.dreamincode.net/forums/showtopic34988.htm
Summary:
C# Basics Quick Reference Sheet Includes:
Namespace
Data Types
Variable Declaration
Type Declaration
Suffixes
Arrays
Comments
Line Continuation
Arithmetic Operators
String Concatenation
Relational Operators
Logical Operators
String Manipulation
If/Else Statement
Inline If Statement
For Loop
For Each Loop
While Loop
Do-While Loop
Select Case Statement
Function Structure
Class Structure
Error Handling
offered for free use by the user "skyhawk133" at dreamincode.com, http://www.dreamincode.net/forums/showtopic34988.htm
Summary:
C# Basics Quick Reference Sheet Includes:
Namespace
Data Types
Variable Declaration
Type Declaration
Suffixes
Arrays
Comments
Line Continuation
Arithmetic Operators
String Concatenation
Relational Operators
Logical Operators
String Manipulation
If/Else Statement
Inline If Statement
For Loop
For Each Loop
While Loop
Do-While Loop
Select Case Statement
Function Structure
Class Structure
Error Handling
ПерегородкаLАB- компания, выполняющая работы по проектированию и организации внутреннего пространства офисов, административных учреждений, жилых помещений
60% bloggers in India say they are now working full-time as blogs run by independent bloggers open new opportunities for sustainable brand positioning and influence, says “India Blog Trends 2016” report by EXPD.
The NYA Participation team and Investing in Children have launched an exciting partnership. Its aim is to enable interested partners to make use of the main strengths of each organisation to promote the human rights of children and young people.
ПерегородкаLАB- компания, выполняющая работы по проектированию и организации внутреннего пространства офисов, административных учреждений, жилых помещений
60% bloggers in India say they are now working full-time as blogs run by independent bloggers open new opportunities for sustainable brand positioning and influence, says “India Blog Trends 2016” report by EXPD.
The NYA Participation team and Investing in Children have launched an exciting partnership. Its aim is to enable interested partners to make use of the main strengths of each organisation to promote the human rights of children and young people.
UiPath Test Automation using UiPath Test Suite series, part 5DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 5. In this session, we will cover CI/CD with devops.
Topics covered:
CI/CD with in UiPath
End-to-end overview of CI/CD pipeline with Azure devops
Speaker:
Lyndsey Byblow, Test Suite Sales Engineer @ UiPath, Inc.
How to Get CNIC Information System with Paksim Ga.pptxdanishmna97
Pakdata Cf is a groundbreaking system designed to streamline and facilitate access to CNIC information. This innovative platform leverages advanced technology to provide users with efficient and secure access to their CNIC details.
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Unlocking Productivity: Leveraging the Potential of Copilot in Microsoft 365, a presentation by Christoforos Vlachos, Senior Solutions Manager – Modern Workplace, Uni Systems
Essentials of Automations: The Art of Triggers and Actions in FMESafe Software
In this second installment of our Essentials of Automations webinar series, we’ll explore the landscape of triggers and actions, guiding you through the nuances of authoring and adapting workspaces for seamless automations. Gain an understanding of the full spectrum of triggers and actions available in FME, empowering you to enhance your workspaces for efficient automation.
We’ll kick things off by showcasing the most commonly used event-based triggers, introducing you to various automation workflows like manual triggers, schedules, directory watchers, and more. Plus, see how these elements play out in real scenarios.
Whether you’re tweaking your current setup or building from the ground up, this session will arm you with the tools and insights needed to transform your FME usage into a powerhouse of productivity. Join us to discover effective strategies that simplify complex processes, enhancing your productivity and transforming your data management practices with FME. Let’s turn complexity into clarity and make your workspaces work wonders!
Sudheer Mechineni, Head of Application Frameworks, Standard Chartered Bank
Discover how Standard Chartered Bank harnessed the power of Neo4j to transform complex data access challenges into a dynamic, scalable graph database solution. This keynote will cover their journey from initial adoption to deploying a fully automated, enterprise-grade causal cluster, highlighting key strategies for modelling organisational changes and ensuring robust disaster recovery. Learn how these innovations have not only enhanced Standard Chartered Bank’s data infrastructure but also positioned them as pioneers in the banking sector’s adoption of graph technology.
Dr. Sean Tan, Head of Data Science, Changi Airport Group
Discover how Changi Airport Group (CAG) leverages graph technologies and generative AI to revolutionize their search capabilities. This session delves into the unique search needs of CAG’s diverse passengers and customers, showcasing how graph data structures enhance the accuracy and relevance of AI-generated search results, mitigating the risk of “hallucinations” and improving the overall customer journey.
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024Neo4j
Neha Bajwa, Vice President of Product Marketing, Neo4j
Join us as we explore breakthrough innovations enabled by interconnected data and AI. Discover firsthand how organizations use relationships in data to uncover contextual insights and solve our most pressing challenges – from optimizing supply chains, detecting fraud, and improving customer experiences to accelerating drug discoveries.
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofsAlex Pruden
This paper presents Reef, a system for generating publicly verifiable succinct non-interactive zero-knowledge proofs that a committed document matches or does not match a regular expression. We describe applications such as proving the strength of passwords, the provenance of email despite redactions, the validity of oblivious DNS queries, and the existence of mutations in DNA. Reef supports the Perl Compatible Regular Expression syntax, including wildcards, alternation, ranges, capture groups, Kleene star, negations, and lookarounds. Reef introduces a new type of automata, Skipping Alternating Finite Automata (SAFA), that skips irrelevant parts of a document when producing proofs without undermining soundness, and instantiates SAFA with a lookup argument. Our experimental evaluation confirms that Reef can generate proofs for documents with 32M characters; the proofs are small and cheap to verify (under a second).
Paper: https://eprint.iacr.org/2023/1886
Threats to mobile devices are more prevalent and increasing in scope and complexity. Users of mobile devices desire to take full advantage of the features
available on those devices, but many of the features provide convenience and capability but sacrifice security. This best practices guide outlines steps the users can take to better protect personal devices and information.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
In his public lecture, Christian Timmerer provides insights into the fascinating history of video streaming, starting from its humble beginnings before YouTube to the groundbreaking technologies that now dominate platforms like Netflix and ORF ON. Timmerer also presents provocative contributions of his own that have significantly influenced the industry. He concludes by looking at future challenges and invites the audience to join in a discussion.
GridMate - End to end testing is a critical piece to ensure quality and avoid...ThomasParaiso2
End to end testing is a critical piece to ensure quality and avoid regressions. In this session, we share our journey building an E2E testing pipeline for GridMate components (LWC and Aura) using Cypress, JSForce, FakerJS…
GridMate - End to end testing is a critical piece to ensure quality and avoid...
Javascript Refererence
1. Addison-Wesley’s
JavaScript Reference Card
Kathleen M. Goelz and Carol J. Schwartz, Rutgers University
Javascript: A scripting language designed to be integrated VARIABLES
into HTML code to produce enhanced, dynamic, interac-
Definition: A placeholder for storing data. In JavaScript, a
tive web pages.
declaration statement consists of the reserved word var and
the name (identifier) of one or more variables.
DATA TYPES
Format:
Definition: The classification of values based on the specific var variable_name
categories in which they are stored. [var command is used to declare (create) variables]
Primitive Types: String, Boolean, Integer, Floating Point, Examples:
Null, Void
var myHouseColor
Composite Types: Object, Array, Function. Composite data
var myAddress
types are in separate sections of the code.
var vacation_house, condominium,
primaryResidence
NUMERIC
Rules for Naming Variables:
Integer: Positive or negative numbers with no fractional
1. Variables cannot be reserved words.
parts or decimal places.
2. Variables must begin with a letter or underscore and
Floating Point: Positive or negative numbers that contain a
cannot begin with symbols, numbers, or arithmetic
decimal point or exponential notations.
notations.
String: A sequence of readable characters or text, surround-
3. Spaces cannot be included in a variable name.
ed by single or double quotes.
Hints:
Boolean: The logical values True/False, etc. used to com-
1. Although variables in JavaScript can be used without
pare data or make decisions.
being declared, it is good programming practice to
Null: The variable does not have a value; nothing to report.
declare (initialize), all variables.
Null is not the same as zero, which is a numeric value.
2. Variable names are case sensitive; for example X does
Casting: Moving the contents of a variable of one type to a
not equal x.
variable of a different type. You don’t move the contents to
a different variable; it stays in the same variable but the
data type is changed or “re-cast”.
,!7IA3C1-dcahfj!:t;K;k;K;k
ISBN 0-321-32075-1
2. IF-ELSE Statement: A conditional branching statement
INITIALIZING VARIABLES
that includes a path to follow if the condition is TRUE and
Use the declaration statement to assign a value to the vari-
a path to follow if the condition is FALSE.
able. The value is on the right of the equal sign; the variable
Format:
is on the left.
if (condition) {
Format:
statements if condition is TRUE;
var variable_name = value
}
Examples: else {
var myHouseColor = “yellow” statements if condition is FALSE;
[literal string value yellow assigned to variable }
myHouseColor] Example:
var myAddress = 473 if (score >= 65) {
[numeric value 473 assigned to variable myAddress] grade = “Pass”;
var bookTitle = “Time Capsule”, cost = message = “Congratulations”;
28.95, publisher = “Tucker Bay” }
[multiple variables can be assigned in one statement] else {
grade = “Fail”
message = “Try again”;
DECISION MAKING AND }
CONTROL STRUCTURES
IF-ELSE IF Statement: A conditional branching statement
Definition: Statements and structures used to change the that allows for more than two possible paths. The first time
order in which computer operations will occur. a true condition is encountered, the statement is executed
Types: and the remaining conditions will not be tested.
Conditional Branching IF IF-ELSE, IF-ELSE IF SWITCH,
, , Format:
WHILE, DO, FOR if (condition) {
Statements if condition is TRUE;
CONDITIONALS }
IF Statement: A conditional branching statement used to else if (condition) {
determine whether a stated condition is TRUE. Statements if condition is TRUE;
}
Format:
else {
if (condition) {
Statements if no prior condition is
statements if condition is TRUE
true;
}
}
Example:
if (score >= 65”) {
grade = “Pass”;
message = “Congratulations”;
}
2
3. Example: Example:
if (score>=90) { switch (colorchoice) {
grade=”A”; case “red”:
} document.bgColor=”red”;
else if (score>=80) { break;
grade=”B”; case “blue”:
} document.bgColor=”blue”;
else if (score>=70) { break;
grade=”C”; default:
} document.bgColor=”white”;
else if (score>=65) { break;
grade=”D”; }
}
LOOPS
else {
grade=”F”; Loops cause a segment of code to repeat until a stated
} condition is met. You can use any loop format for any
type of code
SWITCH Statement: An alternative to the IF-ELSE IF
statement for handling multiple options. Compares the FOR LOOP:
expression to the test values to find a match. Format:
Format: For (intialize; conditional test;
switch (expression or variable name) { increment/decrement) {
Statements to execute;
case label:
}
statements if expression matches
Example:
this label;
For (var i=0; i<=10; i++) {
break;
document.write (“This is line “ + i);
case label:
}
statements if expression matches
DO/WHILE LOOP:
this label;
Format:
break;
default: do {
Statements to execute;
statements if expression does not
}
match any label;
while (condition);
break;
Example:
}
var i=0;
do {
document.write (“This is line “ + i);
i++;
}
while (i <=10);
3
4. Initializing Arrays:
WHILE LOOP:
Array items can be treated as simple variables:
Format:
days[0] = “Sunday”;
while (condition) {
days[1] = “Monday”;
Statements;
etc.
Increment/decrement;
}
STRING OBJECT
Example:
Definition: String object is created by assigning a string to a
var i = 0;
variable, or by using the new object constructor.
while (i<=10) {
Example:
document.write (“This is line “ + i);
i++; var name = “Carol”;
} var name = new String(“Carol”);
Hint: Watch out for infinite loops, which do not have a Properties:
stopping condition or have a stopping condition that will returns the number of characters in the
Length:
never be reached. string
allows the user to add methods and
Prototype:
OBJECTS properties to the string
Methods:
Definition: Objects are a composite data type which con-
String formatting methods (similar to HTML formatting tags)
tain properties and methods. JavaScript contains built-in
String.big
objects and allows the user to create custom objects.
String.blink
Creating Objects: Use the new constructor
String.italics
var X = new Array() Substring methods (allow user to find, match, or change
Examples: patterns of characters in the string)
date, time, math, strings, arrays indexOf()
charAt()
ARRAY OBJECT replace()
Definition: Array object is a variable that stores multiple val-
MATH OBJECT
ues. Each value is given an index number in the array and
Definition: Math object allows arithmetic calculations not
each value is referred to by the array name and the
supported by the basic math operators. Math is a built-in
index number. Arrays, like simple variables, can hold any
object that the user does not need to define.
kind of data. You can leave the size blank when you create
an array. The size of the array will be determined by the Examples:
number of items placed in it.
returns absolute value of
Math.abs(number)
Format: the numeric argument
var arrayname = new Array(size) returns the cosine of the
Math.cos(number)
argument, in radians
Hint: When you create an array, you create a new instance
of the array object. All properties and methods of the array rounds number to the
Math.round(number)
object are available to your new array. nearest integer
Example:
DATE/TIME OBJECTS
var days = new Array (7)
Date object provides methods for getting or setting infor-
This creates an array of seven elements using the array
mation about the date and time.
constructor.
Note: Dates before January 1, 1970 are not supported.
The first item is days[0], the last item is days[6].
4
5. FUNCTIONS PUTTING IT TOGETHER:
JAVASCRIPT AND HTML
Definition: A pre-written block of code that performs a
ON THE WEB
specific task. Some functions return values; others perform
a task like sorting, but return no value. Function names
Cookies: Text-file messages stored by the browser on the
follow the same rules as variables names. There may or
user’s computer
may not be an argument or parameter in the parenthesis,
Purpose: To identify the user, store preferences, and present
but the parenthesis has to be there.
customized information each time the user visits the page
User-defined Functions:
Types:
Example:
Temporary (transient, session) — stored in temporary
ParseInt() or ParseFloat() convert a string to a
memory and available only during active browser session
number.
Persistent (permanent, stored) — remain on user’s comput-
To create a function:
er until deleted or expired
Format:
Browser Detection: A script written to determine which
function name_of_function (arguments) {
browser is running; determine if the browser has the capabili-
statements to execute when
ties to load the webpage and support the javascript code; and,
function is called;
if needed, load alternate javascript code to match the browser
}
and platform.
Example:
Sniffing: A script written to determine whether a specific
function kilosToPounds (){
browser feature is present; i.e., detecting the presence of
pounds=kilos*2.2046;
Flash before loading a webpage.
}
Event Handling: Use HTML event attributes (mouseover,
This new function takes the value of the variable kilos,
mouse click, etc.) and connect event to a JavaScript function
multiplies it by 2.2046, and assigns the result to the vari-
called an event handler
able pounds.
To call a function: Give the name of the function followed
by its arguments, if any
ParseInt(X); converts the data stored in the variable
X into a numeric value.
kilosToPounds(17); converts 17 kilos to the same
mass in pounds, returning the value 37.4782.
METHODS
Definition: A special kind of function used to describe or
instruct the way the object behaves. Each object type in
JavaScript has associated methods available.
Examples:
array.sort();
document.write();
string.length();
Calling: To call or use a method, state the method name
followed by its parameters in parentheses.
Example:
document.write(“Hello, world!”);
5
6. COMPARISON
OPERATORS
== Returns true if the operands are equal
!= Returns true if the operands are not equal
ARITHMETIC
=== Returns true if the operands are equal and the
+ addition adds two numbers
same data type
– subtraction subtracts one number from
!== Returns true if the operands are not equal and/or
another
not the same data type
* multiplication multiplies two numbers
> Returns true if the first operand is greater than
/ division divides one number by another
the second
% modulus returns the integer remainder
>= Returns true if the first operand is greater than or
after dividing two numbers
equal to the second
++ increment adds one to a numeric variable
< Returns true if the first operand is less than the
— decrement subtracts one from a numeric
second
variable
<= Returns true if the first operand is less than or
equal to the second
STRING
+ concatenation concatenates or joins two ASSIGNMENT
strings or other elements
= Assigns the value of the seond operand to the
+= concatenation/ concatenates two string
first operand
assignment variables and assigns the
+= Adds two numeric operands and assigns the
result to the first variable
result to the first operand
–= Subtracts the second operand from the first, and
LOGICAL
assigns the result to the first
&& logical AND Compares two operands; *= Multiplies two operands, assigns the result to the
returns true if both are true, first
otherwise returns false /= Divides the first operand by the second, assigns
|| logical OR Compares two operands; the result to the first
returns true if either operand %= Finds the modulus of two numeric operands, and
is true, otherwise returns false assigns the result to the first
! logical NOT Returns false if its operand
can be converted to true,
RESERVED WORDS
otherwise returns false
abstract else instanceof switch
boolean enum int synchronized
break export interface this
byte extends long throw
case false native throws
catch final new transient
char finally null true
class float package try
const for private typeof
continue function protected var
debugger goto public void
default if return volatile
delete implements shor while
do import static with
double in super
6