Html miscellaneous


  1. Which is not a JavaScript global function?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    There are various global functions in JavaScript, decodeURI(), escape(), isFinite(), eval(), isNaN(), encodeURI(), decodeURIComponent(), encodeURIComponent(), isFinite(), is NaN(), parseFloat(), String(), parseInt(), unescape() are some of the methods.


  1. Which one is not regular expression object method?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    compile(), toString(), exec(), test() are some of the regular expression methods in JavaScript. Compile() is method that compiles regular expression. Test() method is for matching in a string. Exec() is also for matching in a string but it returns first match. toString() method returns string value.



  1. In JavaScript, which one is used to finding the non-whitespace characters?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    There are metacharacters defined in JavaScript. \S is used to find the non-whitespace character. \d is used for finding a digit. \s is used for finding whitespace character. \w is used to find word character. \W is used to find non word character.


  1. The method releases jQuery’s control of $ is __________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    $.noConflict() method releases control of $ in jQuery. A reference to jQuery is returned by noConflict() method. E.g. var ty=$.noConflict(); ty(document).ready(function()) { ty(“button”).click(function() {ty(“h”).text(“It is working!”);}); });. $.param() jQuery AJAX method is the representation of an object or array. An each() method particularize function to run for every matched element. data() method either connects data to selected elements or get data from them.



  1. Correct syntax for $.post() method is ____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The correct syntax for $.post() method is $.post(URL,data,callback). URL is the URL we want to request for. Callback is the name of the function that is to be executed. Data specifies the data that is to be send with the request.