Skip navigation

Category Archives: Uncategorized

We can store different types of values in a single JavaScript array. To know how consider the following code (refer comments).

// declare a variable & store boolean value in it
var bVal = true;
// declare another variable myArr and store an array in it
// Store different values like Number, String, Data, Function(!!), boolean
var myArr = Array(2,"raja",Date(),function(){return 2;},bVal);
alert(myArr[4]);  // true
alert(myArr[3]());  // 2

The function stored at index value 3 is an anonymous function. This concept will be new to “non” JavaScript programmers and “new” JavaScript programmers.

There are lot other this kind of concepts makes JavaScript more powerful, compact, flexible. So I invite you all to explore JavaScript more and more…


For questions: ebay paypal (csc client) UI Developer interview questions

  1. a
  2. c
  3. b
  4. c
  5. d
  6. a
  7. d
  8. b
  9. a
  10. c
  11. b
  12. a
  13. d
  14. d
  15. d
  16. c
  17. a
  18. c
  19. d
  20. a

For missed answers, please leave your comments.

Thanks Livi for reviewing & comments!!

Few CSS tips

  1. @import delay page load. use <link> instead
  2. Don’t include unit for zeros.
  3. Avoid padding/border and fixed width.
  4. Use IDs for structural elements. let .net use ID’s happily!!
  5. Name ID/classes based on its function never for its appearance.
  6. Dont use short names; use full descriptive names
  7. HTML attributes “id” and “class” are case sensitive! so always use lower case for naming
  8. It is better to use reset browser stylesheet.
  9. Use relative font sizes
  10. Inline styles are only for testing.
  11. css style order:- a:link, a:visited, a:hover and a:active (LoVe HAte)
  12. Don’t use <br />; instead use <p> with margin & padding.
  13. Use tags appropriately like <blockquote>, <cite>, <h1>…<h6>, <strong>, <em>, etc
  14. Don’t use html comments inside external css because it lead to  misinterpretation (child selector >)

Your thoughts??