30 Matching Annotations
  1. May 2020
    1. Regular Expression Functions There are three regular-expression functions that operate on strings: matches() tests if a regular expression matches a string. replace() uses regular expressions to replace portions of a string. tokenize() returns a sequence of strings formed by breaking a supplied input string at any separator that matches a given regular expression. Example:   

      Test question: how many are there regular-expression functions in XSLT?

    2. What’s the difference between xsl:value-of, xsl:copy-of, and xsl:sequence? xsl:value-of always creates a text node. xsl:copy-of always creates a copy. xsl:sequence returns the nodes selected, subject possibly to atomization. Sequences can be extended with xsl:sequence.

      What’s the difference between xsl:value-of, xsl:copy-of, and xsl:sequence?

    3. <xsl:variable name="date" select="xs:date('2003-11-20')"/>

      How to declare the date in the variable in XSLT 2?

    4. Types XSLT 2.0 allows you to declare: The type of variables. The return type of templates. The type of sequences (constructed with xsl:sequence) The return type of (user-declared) functions. Both the type and required type of parameters.

      What are the types that one can declare in XSLT 2?

    1.  <xsl:sequence select="1 to 16"/>

      How to create a sequence with range.

    2. <xsl:for-each select="1 to 32">  <!-- Do something useful here --></xsl:for-each>

      How to create a loop in XSLT?

    3. The new as attribute defines the data type of the variable, and the asterisk (xs:integer*) means that the sequence contains zero or more integers

      How is the @as attribute? Which values can it have?

    4. One of the major new concepts in XPath 2.0 and XSLT 2.0 is that everything is a sequence.

      What is one of the major concepts in XPath 2.0 and XSLT 2.0?

  2. Apr 2020
    1. What is a Function Expression?A JavaScript function can also be defined using an expression.A function expression can be stored in a variable:var x = function (a, b) {return a * b};After a function expression has been stored in a variable, the variable can be used as a function. Functions stored in variables do not need function names. They are always invoked (called) using the variable name.

      Test question: What is function expression?

    1. Writing an async function is quite simple. You just need to add the async keyword prior to function:

      Test question: What is the syntax of async function?

    1. Using objects as keys is one of most notable and important Map features.

      Test question: What is one of the most notable and important Map features?

    2. Map is a collection of keyed data items, just like an Object. But the main difference is that Map allows keys of any type.

      Test question: What is the difference between Map and Object in JavaScript?

  3. javascript.info javascript.info
    1. he basic syntax is: let promise = fetch(url, [options])

      Test question: What s the basic syntax of fetch(); ?

    1. Webpack is a most have to compile a complete JavaScript project.

      Test question: how do you pack the web extension?

    2. linter

      Test question: What is a linter?

      Answer (Wikipedia): lint, or a linter, is a tool that analyzes source code to flag programming errors, bugs, stylistic errors, and suspicious constructs.[1] The term originates from a Unix utility that examined C language source code.[2]

    3. This tool accepts both a configuration file and line parameters.

      Test question: How can you configure web-ext?

    1. document.addEventListener(event, function, useCapture)

      Test question: What is the syntax of element.addEventListener() ?

    1. Square brackets hold arrays and values are separated by ,(comma).

      Test question: What are square brackets used for?

    2. JSON syntax is basically considered as a subset of JavaScript syntax;

      Test question: What is JSON syntax part of?

    3. name/value pairs.

      Test question: How is the data in json represented?

    1. Extensions for Firefox are built using the WebExtensions APIs, a cross-browser system for developing extensions.

      Testing question: How compatible are extensions among Web Browsers?

    1. The most interesting key here is content_scripts, which tells Firefox to load a script into

      Testing question: What part of "manifest.json" tells firefox where is the script to load?

    2. description is optional, but recommended: it's displayed in the Add-ons Manager. icons is optional, but recommended: it allows you to specify an icon for the extension, that will be shown in the Add-ons Manager.

      Testing question: What are the optional parts of manifest.json?

  4. developer.mozilla.org developer.mozilla.org
    1. Never use eval()! eval() is a dangerous function, which executes the code it's passed with the privileges of the caller.

      Testing question: Should you ever use eval()?

  5. developer.mozilla.org developer.mozilla.org
    1. The popup is specified as an HTML file, which can include CSS and JavaScript files, as a normal web page does.

      Testing question: Of which files the popup consists of?

    2. Popups resize automatically to fit their content.

      Testing question: How is the popup resized?