Showing posts with label JQuery. Show all posts
Showing posts with label JQuery. Show all posts

What is the basic difference between "var" keyword in Javascript and C# ?

Answer:

In C#, we have "dynamic" keyword. This dynamic keyword is somewhat similar to javascript's "var" . Here, both create a variable whose type will not be known until runtime, and whose misuse will not be discovered until runtime. C#'s var creates a variable whose type is known at compile time.

For example:-

dynamic dt= new DateTime();

dt.bar();


//compiles fine but gives an error at runtime

Tags : var keyword in c#,Jquery
Answer:

In C#, we have "dynamic" keyword. This dynamic keyword is somewhat similar to javascript's "var" . Here, both create a variable whose type will not be known until runtime, and whose misuse will not be discovered until runtime. C#'s var creates a variable whose type is known at compile time.

For example:-

dynamic dt= new DateTime();

dt.bar();


//compiles fine but gives an error at runtime

Tags : var keyword in c#,Jquery

What is the basic difference between "var" keyword in Javascript and C# ?

Answer:

In C#, we have "dynamic" keyword. This dynamic keyword is somewhat similar to javascript's "var" . Here, both create a variable whose type will not be known until runtime, and whose misuse will not be discovered until runtime. C#'s var creates a variable whose type is known at compile time.

For example:-

dynamic dt= new DateTime();

dt.bar();


//compiles fine but gives an error at runtime

Tags : var keyword in c#,Jquery
Answer:

In C#, we have "dynamic" keyword. This dynamic keyword is somewhat similar to javascript's "var" . Here, both create a variable whose type will not be known until runtime, and whose misuse will not be discovered until runtime. C#'s var creates a variable whose type is known at compile time.

For example:-

dynamic dt= new DateTime();

dt.bar();


//compiles fine but gives an error at runtime

Tags : var keyword in c#,Jquery

Is it good to load jquery from CDN(Content delivery network)

Answer:Yes, it is always good to load your jquery from content delivery network. It provides some benefits like :-
 (1) Caching - It means that if any previously visited site by user is using jQuery from Google CDN then the cached version will be used. It will not be downloaded again.
 (2) Reduces load - It reduces the load on your web server as it downloads from Google server's.
 Example :-
<script  type="text/javascript"

    src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">

</script>
Answer:Yes, it is always good to load your jquery from content delivery network. It provides some benefits like :-
 (1) Caching - It means that if any previously visited site by user is using jQuery from Google CDN then the cached version will be used. It will not be downloaded again.
 (2) Reduces load - It reduces the load on your web server as it downloads from Google server's.
 Example :-
<script  type="text/javascript"

    src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">

</script>

Is it good to load jquery from CDN(Content delivery network)

Answer:Yes, it is always good to load your jquery from content delivery network. It provides some benefits like :-
 (1) Caching - It means that if any previously visited site by user is using jQuery from Google CDN then the cached version will be used. It will not be downloaded again.
 (2) Reduces load - It reduces the load on your web server as it downloads from Google server's.
 Example :-
<script  type="text/javascript"

    src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">

</script>
Answer:Yes, it is always good to load your jquery from content delivery network. It provides some benefits like :-
 (1) Caching - It means that if any previously visited site by user is using jQuery from Google CDN then the cached version will be used. It will not be downloaded again.
 (2) Reduces load - It reduces the load on your web server as it downloads from Google server's.
 Example :-
<script  type="text/javascript"

    src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">

</script>