answersLogoWhite

0

This is not an HTML construct. This is most commonly a construct of JavaScript written within the HTML. There can be many reasons for using it. Less common is as a "placeholder." Most common is the bring a placeholder to "life" by defining it and to give its initial value a null. Then it possible to fill its value with something else, since has been defined; you cannot fill any value that the browaser does not know about.

User Avatar

Wiki User

11y ago

What else can I help you with?

Continue Learning about Engineering

What is a non linear line?

Nonlinear lines do not exist since a line, by definition, must be linear.


Two Binary Trees are similar if they are both empty or if they are both non-empty and left and right sub trees are similar Write an algorithm to determine if two Binary Trees are similar?

/* Given two trees, return true if they are structurally identical. */ int sameTree(struct node* a, struct node* b) { // 1. both empty -> true if (a==NULL && b==NULL) return(true); // 2. both non-empty -> compare them else if (a!=NULL && b!=NULL) { return(sameTree(a->left, b->left) && sameTree(a->right, b->right) ); } // 3. one empty, one not -> false else return(false); }


Is robot a living thing or a non living thing?

By definition, a robot is a machine and therefore not a living entity.


What is the difference between null array and an empty array?

There is no null array as such. However, a pointer to an array may be nullified (pointing to zero) before memory is allocated to it, or after that memory is released. But the same is true of any pointer. That is, the pointer is NULL, not what it previously pointed to. An empty array usually refers to a dynamic array for which no memory has yet been allocated (in other words, a null pointer). However, the term can also apply to static arrays or dynamic arrays that have been allocated memory, where every element is initialised with a value that has no significance. For instance, an array of natural numbers (positive integers greater than 0) might be initialised with the value 0 (a non-natural number) in every element to indicate that the array is empty. By contrast, individual elements could be set to zero to indicate which elements are available (an empty element as opposed to an empty array).


Is string arr a non primitive data type?

Depends on the context of the question you were asking from, there are 2 distinct answers: Yes and NO. In the narrowest definition, any array is NOT a primitive data type in C#. Hence a string array is NOT a primitive data type in that context. A string itself, however, is a primitive data type. Some developers would like to extend the definition of "primitives" into the arrays, collections, and Enumeration. Thus, in this context, an array of string IS a primitive data type.