Author: admin
-
Smashing Magazine
SmashingMagazine is an independent programming publication that posts articles written by and for developers making it the quintessential blog for programmers. The blog’s articles range in topics, but are all applicable to web programmers. My only knocks on them are the full-screen in-text ads and company promotions. All articles are written and reviewed by programmers to…
-
CSS Tricks
CSS Tricks is a web dev blog that’s been active on Front End Development and building websites since 2007. Their army of writers publishes articles on tangible programming exercises and strategies, and the content is as diverse as the writers themselves. They have some for-sale books and merchandise confined to a sales part of the…
-
Ben Nadel
Ben Nadel is a NY-based programmer, co-founder, and principal engineer at InVision App, Inc, a design and user experience (UX) company. His blog — sometimes known as “The Kinky Solutions” blog — documents his programming experimentation. The blog has a huge collection of useful and in-depth articles which is a treasure trove for any web…
-
What’s the difference between let and var?
Both let and var are used for variable and method declarations in JavaScript. So there isn’t much of a difference between these two besides that while var keyword is scoped by function, the let keyword is scoped by a block.
-
How would you delete a cookie?
To delete a cookie, we can just set an expiration date and time. Specifying the correct path of the cookie that we want to delete is a good practice since some browsers won’t allow the deletion of cookies unless there is a clear path that tells which cookie to delete from the user’s machine. function…
-
How would you read a cookie?
Reading a cookie using JavaScript is also very simple. We can use the document.cookie string that contains the cookies that we just created using that string. The document.cookie string keeps a list of name-value pairs separated by semicolons, where ‘name’ is the name of the cookie, and ‘value’ is its value. We can also use…
-
How would you create a cookie?
The simplest way of creating a cookie using JavaScript is as below: document.cookie = “key1 = value1; key2 = value2; expires = date”;
-
What do you understand about cookies?
A cookie is generally a small data that is sent from a website and stored on the user’s machine by a web browser that was used to access the website. Cookies are used to remember information for later use and also to record the browsing activity on a website.
-
What are the ways of adding JavaScript code in an HTML file?
There are primarily two ways of embedding JavaScript code: Intermediate JavaScript Interview Questions and Answers Here are some intermediate level JavaScript interview questions and answers for you to prepare during your interviews.
-
What is the difference between Function declaration and Function expression?
Function declaration Function expression Declared as a separate statement within the main JavaScript code Created inside an expression or some other construct Can be called before the function is defined Created when the execution point reaches it; can be used only after that Offers better code readability and better code organization Used when there is…