Posts

What is JQuery? Write down its uses. (12)

  What is JQuery? Write down its uses. jQuery is a fast, small, lightweight, "write less, do more", cross platform and rich feature JavaScript library. It is designed to simplify the client-side scripting of HTML. It makes things like HTML document traversal and manipulation, animation, event handling, and AJAX very simple with an easy to use API that works on a lot of different types of browsers. Uses of jQuery: It makes easier to use JavaScript on your website to make it more interactive and attractive. It is also used to add Effects and animations. Using jQuery we can replace multiple lines of JavaScript code with a single line. It is used for CSS manipulation and DOM manipulation JQuery selectors are used to select and manipulate HTML elements. They are a very important part of the JQuery library. jQuery is not a programming language instead it is a cross-platform JavaScript library.

Explain different data types used in JavaScript. (12)

Explain different data types used in JavaScript. Data types basically specify what kind of data can be stored and manipulated within a program. JavaScript provides different data types to hold different types of values. There are two types of data types in JavaScript. a)       Primitive data types b)       Non-primitive (reference) data types Primitive Data Types Primitive data types can hold only one value at a time. There are five types of primitive data types in JavaScript. They are as follows. Data Types Description String It represents sequence of characters. Eg. “Hello” Number It represents numeric values. Eg. 12 Boolean It represents Boolean value either false or true Undefined It represents undefined value Null It represents null, ie, no value at all Non Primitive Data types No...

Web II (PHP) (12)

 Web II (PHP and MySQL Database Connectivity) What is PHP? The PHP Hypertext Preprocessor (PHP) is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications. It is a widely-used, free and opensource scripting language. The main feature of PHP from something like client-side JavaScript is that the code is executed on the server, generating HTML which is then sent to the client. Basic Syntax of PHP <html> <head> <title>Hello World</title> </head> <body> <? php echo "Hello, World!" ; ?> </body> </html> Character functions in PHP strlen( ): Counting the number of character inside the string. strlen($my_str); str_word_count( ): Counting the number of words in a string. str_word_count(my_str); str_replace( ): Replaces the searched text inside the string. str_replace("...