Question:

$$$$$ easy 10 pts $$$$$?

by  |  earlier

0 LIKES UnLike

What is the "$" in javascript?

As in:

$( 'x1' ).value = coords.x1;

 Tags:

   Report

4 ANSWERS


  1. It can be either a function, or an attribute of the RegExp object.


  2. IDK lol

  3. The usage of a single $ sign usually denotes the input of an regular expression - it's an attribute of the RegExp object.

  4. A dollar function is a function that abbreviates the code

    document.getElementById("idName")

    to

    $("idName")

    Saves a lot of typing. In the example given, 'x1' is the id of an html element and that element is being assigned a value.

    Designing the ultimate Dollar function is one of the grails of JavaScript Programming. (It can be used to return an array of elements)  For the actual code used in your example, download all of the .js <script> references in the page <head> section  (and of course looks for $)

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.