<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dinesh Marathe on Medium]]></title>
        <description><![CDATA[Stories by Dinesh Marathe on Medium]]></description>
        <link>https://medium.com/@dineshmarathe2?source=rss-40398c974e4b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*U0BZzvZ2bR9PF6Wolqb75Q.jpeg</url>
            <title>Stories by Dinesh Marathe on Medium</title>
            <link>https://medium.com/@dineshmarathe2?source=rss-40398c974e4b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 17:40:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dineshmarathe2/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[HTML5 & CSS3 Interview Questions & Answers]]></title>
            <link>https://medium.com/@dineshmarathe2/html5-css3-interview-questions-answers-e729a37aa33c?source=rss-40398c974e4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e729a37aa33c</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[html5-development]]></category>
            <dc:creator><![CDATA[Dinesh Marathe]]></dc:creator>
            <pubDate>Wed, 09 Jan 2019 05:11:56 GMT</pubDate>
            <atom:updated>2019-01-09T05:11:56.271Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u_DMKSZ52DBgJGVDNdNWWA.jpeg" /></figure><ol><li><strong>What is HTML5?<br></strong>HTML5 is the most recent version of the HTML(Hypertext Markup Language). It is a language for structuring and displaying content for the World Wide Web, a core technology of the Internet.</li><li><strong>What is &lt; !DOCTYPE&gt;? Is it necessary to use in HTML5?<br></strong>The &lt; !DOCTYPE&gt; is an instruction to the web browser about what version of HTML the page is written in. AND The &lt; !DOCTYPE&gt; tag does not have an end tag and It is not case sensitive.<br>The &lt; !DOCTYPE&gt; declaration must be the very first thing in HTML5 document, before the tag. As In HTML 4.01, all &lt; ! DOCTYPE &gt; declarations require a reference to a Document Type Definition (DTD), because HTML 4.01 was based on Standard Generalized Markup Language (SGML). Where as HTML5 is not based on SGML, and therefore does not require a reference to a Document Type Definition (DTD).</li><li><strong>List out the new features of HTML5?<br></strong>The &lt;canvas&gt; element for 2D drawing<br>The &lt;video&gt; and &lt;audio&gt; elements for media playback<br>Support for local storage<br>New content-specific elements, like &lt;article&gt;, &lt;footer&gt;, &lt;header&gt;, &lt;nav&gt;, &lt;section&gt;</li><li><strong>What is Canvas? How to write a Canvas ?<br></strong>Canvas is a element of HTML5 which uses JavaScript to draw graphics on a web page. A canvas is a rectangular area. Each and every pixel of it can be controlled by us. There are several methods for drawing paths, boxes, circles, characters, and adding images by using canvas.<br>To add canvas tag to our HTML document we need id, width and height. Below is the example how to write a basic canvas tag to your HTML document.<br>&lt;canvas id=”myFirstCanvas” width=”100&quot; height=”100&quot;&gt; &lt;/canvas&gt;</li><li><strong>What is the sessionStorage Object in HTML? How to create and access?<br></strong>The sessionStorage object stores the data for one session. The data is deleted when the user closes the browser window. like below we can create and access a sessionStorage here we created “blogName” as session.<br>&lt;script type=”text/javascript”&gt;<br>sessionStorage.blogName=”OnlineInterviewQuestions”;<br>document.write(sessionStorage.name);<br>&lt;/script&gt;</li><li><strong>What is the difference between Html5 application cache and regulate Html browser cache?<br></strong>The new HTML5 specification allows browsers to prefetch some or all of website assets such as HTML files, images, CSS, JavaScript, and so on, while the client is connected. It is not necessary for the user to have accessed this content previously, for fetching this content. In other words, application cache can prefetch pages that have not been visited at all and are thereby unavailable in the regular browser cache. Prefetching files can speed up the site’s performance, though you are of course using bandwidth to download those files initially.</li><li>What is the use of LocalStorage in HTML5?<br>Before HTML5 LocalStores was done with cookies. Cookies are not very good for large amounts of data, because they are passed on by every request to the server, so it was very slow and in-effective.<br>In HTML5, the data is NOT passed on by every server request, but used ONLY when asked for. It is possible to store large amounts of data without affecting the website’s performance.and The data is stored in different areas for different websites, and a website can only access data stored by itself.<br>And for creating localstores just need to call localStorage object like below we are storing name and address.<br>&lt;script type=”text/javascript”&gt;<br>localStorage.name=”ABC”;<br>localStorage.address=”New Delhi India.”;<br>document.write(localStorage.address);<br>&lt;/script&gt;</li><li><strong>Can you list the new input type attributes in HTML5?<br></strong><em>tel</em><strong> </strong>The input is of type telephone number<br><strong><em>search </em></strong>The input field is a search field<br><strong><em>url </em></strong>a URL<br><strong><em>email </em></strong>One or more email addresses<br><strong><em>datetime </em></strong>A date and/or time<br><strong><em>date </em></strong>A date<br><strong><em>month </em></strong>A month<br><strong><em>week </em></strong>A week<br><strong><em>time </em></strong>The input value is of type time<br><strong><em>datetime-local</em></strong> A local date/time<br><strong><em>number </em></strong>A number.<br><strong><em>range </em></strong>A number in a given range.<br><strong><em>color </em></strong>A hexadecimal color, like #82345c<br><strong><em>placeholder </em></strong>Specifies a short hint that describes the expected value of an input field.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e729a37aa33c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bootstrap Interview Questions]]></title>
            <link>https://medium.com/@dineshmarathe2/bootstrap-interview-questions-aef6765e791e?source=rss-40398c974e4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/aef6765e791e</guid>
            <category><![CDATA[bootstrap]]></category>
            <category><![CDATA[bootstrap-interview-ques]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Dinesh Marathe]]></dc:creator>
            <pubDate>Wed, 02 Jan 2019 10:43:29 GMT</pubDate>
            <atom:updated>2019-01-10T08:58:52.294Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*4kaVYWNa9cig-xdAhFJd3g.jpeg" /></figure><ol><li><strong>What is Bootstrap?</strong><br>Bootstrap is a free front-end framework for faster and easier web development. Bootstrap includes HTML and CSS based design templates for typography, forms, buttons, tables, navigation, modals, image carousels and many other, as well as optional JavaScript plugins<br>Bootstrap also gives you the ability to easily create responsive designs.</li><li><strong>What are classes from bootstrap used for column ordering?</strong><br>Ans: In bootstrap generally 12 standard column grid we used. In that we uses xs, sm, md, lg classes as per screen size. col-xs-*, col-sm-*, col-md-*, col-lg-* we used for extra small, small, medium and large device.</li><li><strong>Glyphicons from bootstrap is mainly used for?</strong><br>Ans: Glyphicons. Bootstrap provides 260 glyphicons from the Glyphicons Halflings set. Glyphicons can be used in text, buttons, toolbars, navigation, forms, etc.</li><li><strong>Why Bootstrap is used for Mobile Web Development?</strong><br>Ans: It is used for Mobile Web development because it has responsive designs and templates which is easy to use.</li><li><strong>What are the features of Bootstrap?</strong><br>Ans: a. Open Source for use.<br> b. Compatibility with all browsers.<br> c. Responsive designs.<br> d. Easy to use and fast.</li><li><strong>How many types of layouts are there in Bootstrap?</strong><br>Ans: a. Fluid layout <br> b. Fixed layout<br><strong>Fluid Layout</strong> is useful when you need to make an app which involves the full width of the screen i.e. Fluid Layout adjusts itself according to the browser size.<br><strong>Fixed layout</strong> is responsive and easy to use but just like the fluid layout, it cannot adjust itself according to the browser size. Fixed Layout should be 940 px in most cases.</li><li><strong>How can you display a code in Bootstrap?</strong><br>Ans: You can display the code in two ways i.e. by using the &lt;code&gt;tag and by using the &lt;pre&gt;tag.</li><li><strong>When will you use &lt;code&gt;tag and &lt;pre&gt;tag?</strong><br>Ans: &lt;code&gt;tag is used to show the code inline and &lt;pre&gt;tag is used to show code with multiple lines.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aef6765e791e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Javascript Questions and Answers: set1]]></title>
            <link>https://medium.com/@dineshmarathe2/javascript-questions-and-answers-set1-39666d25bdf2?source=rss-40398c974e4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/39666d25bdf2</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[javascript-q-a]]></category>
            <dc:creator><![CDATA[Dinesh Marathe]]></dc:creator>
            <pubDate>Wed, 02 Jan 2019 10:37:12 GMT</pubDate>
            <atom:updated>2019-01-11T06:10:15.018Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*bxEkHw1xewxOFjmGunb-Cw.png" /></figure><ol><li><strong>What will be output of “type of null”?</strong><br>Ans: object</li><li><strong>What is typeof(typeof(object))?</strong><br>Ans: string</li><li><strong>What is typeof [] ?</strong><br>Ans: Object. Actually Array is derived from Object. If you want to check array use Array.isArray(arr)</li><li><strong>What is typeof arguments?<br></strong>Answer: Object. arguments are array like but not array. it has length, can access by index but can’t push pop, etc.</li><li><strong>What is 2+true?<br></strong>Answer: 3. The plus operator between a number and a boolean or two boolean will convert boolean to number. Hence, true converts to 1 and you get result of 2+1</li><li><strong>What is significance of == in Javascript?</strong><br>Ans: a. The double equal == is an auto type conversion and it checks only value not type. <br> b. == provides Abstract Equality Comparison<br> c. double equals (==) will perform a type conversion when comparing two things, and will handle NaN like NaN != NaN, and -0 == +0</li><li><strong>Which method of javascript is use to access element with class?</strong><br>Ans: getElementsByClassName()</li><li><strong>What is Closure?</strong><br>Ans: A Closure is an inner function that has access to the outer functions variable’s.<br> The Closure has three scope chains:<br> 1. It has access to own scope (variables defined between its curly brackets).<br> 2. It has access to the outer function’s variables.<br> 3. It has access to the global variables.</li></ol><blockquote>The inner function has access not only to the outer function’s variables, but also outer function’s parameter. The inner function can not call the outer function’s argument’s object.</blockquote><p>Example:</p><pre>function init() {<br> var name = &quot;Angular&quot;;<br> function displayName() {<br> alert(name);<br> }<br> displayName();<br>}<br>init();</pre><p><strong>6.</strong> <strong>What is Bubbling in Js?</strong><br>Ans: When an event happens on an element, it first runs the handlers on it, then on its parent, then all the way up on other ancestors.</p><p>Example:</p><pre>&lt;form onclick=&quot;alert(&#39;form&#39;)&quot;&gt;Form<br>      &lt;div onclick=&quot;alert(&#39;div&#39;)&quot;&gt;Div<br>            &lt;p onclick=&quot;(&#39;p&#39;)&quot;&gt;P<br>            &lt;/p&gt;<br>      &lt;/div&gt;<br>&lt;/form&gt;</pre><p>7. <strong>Prototype in JavaScript?</strong><br>Ans: -All JavaScript object inherits properties and methods from prototype.<br> -Use to access parent class object.<br> -Use to access other function’s variable’s.<br> -Use to create/insert new method in existing class.<br> <strong>[ className.prototype.myMethod() = function(){} ] </strong><br> -Prototype only modify your ‘Own’ properties, never modify the prototypes of default/standard javascript objects.</p><p><strong>8. Variable hoisting in JavaScript?</strong><br>Ans: Hosting is JavaScript’s default behaviour of moving declarations to the top. A variable can be used before it has been decared.</p><p><strong>9. Function hoisting in JavaScript?</strong><br>Ans: Variable and function declarations are physically moved to the top of your code, but this is not in fact what happens. Instead, the variable and function declarations are put into memory during the compile phase, but stay exactly where you typed them in your code.</p><p><strong>10. Different ways of declaring functions.</strong></p><pre>function A() {}; // function declaration</pre><pre>var B = function() {}; // function expression</pre><pre>var C = ( function() {} ); // function expression with grouping operators</pre><pre>var D = function foo() {}; // named function expression</pre><pre>var E = ( function() { // immediately-invoke function expression (IIFE) that returns a function<br> return function() {}<br>})();</pre><pre>var F = new Function(); // Function constructor</pre><pre>var G = new function() {}; // special case: object constructor</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39666d25bdf2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular 2/4/6 Interview Questions…]]></title>
            <link>https://medium.com/@dineshmarathe2/angular-2-4-6-interview-questions-cc16b692f93d?source=rss-40398c974e4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc16b692f93d</guid>
            <category><![CDATA[angular2]]></category>
            <category><![CDATA[angular-4]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Dinesh Marathe]]></dc:creator>
            <pubDate>Thu, 27 Dec 2018 03:44:41 GMT</pubDate>
            <atom:updated>2019-01-15T04:54:28.758Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*68spTmrwEffSXaTzmVjbTw.png" /></figure><h4>Top 20 Angular 2/4/6 Interview Questions…</h4><ol><li><strong>What is routing in Angular?</strong></li><li><strong>How to implement child routing?</strong></li><li><strong>What is Service in Angular?</strong><br>A Service in Angular is class which contains some functionality that can be reused across the application. A Service is a singleton object. Angular services are a mechanism of abstracting shared code and functionality throughout the application.</li><li><strong>Why Services?</strong><br>Services can be used to share the code across component’s of an application. Services can be used to make httprequests.</li><li><strong>How to create a service?</strong><br>i. Create a class with injectable decorator.<br>ii. @Injectable() decorator makes the class injectable into application component’s.<br>iii. @Injectable() class MyClass{}</li><li><strong>How to Inject a service?</strong><br>There are two steps to inject a service:<br>i. Add providers property in the module class so that service class is available to the entire application.<br> providers:[MyService]<br>If service is needed only for specific component’s it can be added in those component classes instead of module.<br>ii. Add a constructor in a component class with service class as argument.<br>constructor(private service: MyService) {}<br>MyService will be injected into the component through constructor injection by the framework.</li><li><strong>How Observable work in Angular?</strong></li><li><strong>What is Lazy loading?</strong></li><li><strong>What is route Guard and when we use it?</strong></li><li><strong>What is directive in Angular?</strong><br>Directives are used to change the behavior of component’s or element’s. We can use directive in the form of HTML attributes. We create directives using classes attached with @Directive decorator which adds metadata to the class.</li><li><strong>Why Directives?</strong><br>Directives are used whenever we need to modify DOM elements. Directives are used to create reusable and independent code. We can create custom elements to implement the required functionality.</li><li><strong>Type of Directives?<br></strong>There are three types of directives:<br>i. <strong>Component </strong>are directives with a template or view. <a href="http://twitter.com/Component">@Component</a> decorator is actually <a href="http://twitter.com/Directive">@Directive</a> with template.<br>ii. A <strong>Structural </strong>directive changes the DOM structure by adding and removing DOM elements, ngIf, ngFor, ngSwitch are built in structural directives.<br>iii. <strong>Attribute </strong>directives changes the appearance or behavior of component or element. Built in attribute directives are ngStyle and ngClass.</li><li><strong>What is Component in Angular?</strong><br>Components are like the basic building block in an Angular application. Components are defined using the <a href="http://twitter.com/component">@component</a> decorator. A component has a selector , template , style and other properties. The Components are used to split the application into smaller parts. Only one component is used per DOM element.</li><li><strong>Difference between Promises and Observable?</strong><br><strong>Promises</strong>: Promise is not Lazy. Promises are only called once and it can return only single value at a time and the promises are not cancellable.<br><strong>Observable’s</strong>: Observable is Lazy and is not called untill we subscribe to the observable. Observable’s handle multiple values over a time and it can return multiple values and observable’s are cancellable if you don’t want any Http response. Observable provides operators like map, forEach, filter, reduce, retry, retryWhen etc.</li><li><strong>What is Pipe in Angular? How to implement?</strong><br>“Pipes transform displayed values within a template”. Sometimes, the data is not displays in the well format on the template that time where using pipes.</li><li><strong>ng serve vs ng build</strong></li><li><strong>ng build vs ng build - -prod</strong></li><li><strong>How to prevent memory leakage in Angular?</strong></li><li><strong>What is zone.js?</strong></li><li><strong>How Angular knows if any value change and how its updated in change detection?</strong></li><li><strong>What is decorators?</strong><br>Decorator’s are function’s that are invoked with a prefixed @ symbol and immediately followed by a class, parameter, method or property.<br>The decorator function is supplied information about the class, parameter or method and the decorator returns something in it’s place, or manipulates it’s target in some way.</li><li><strong>Type of decorators?<br></strong>Decorator’s types:<br>1. <strong>Class </strong>decorator: <a href="http://twitter.com/Component">@Component</a>, <a href="http://twitter.com/NgModule">@NgModule</a><br>2. <strong>Method </strong>decorator: <a href="http://twitter.com/HostListener">@HostListener</a><br>3. <strong>Property </strong>decorator: <a href="http://twitter.com/Input">@Input</a>, <a href="http://twitter.com/Output">@Output</a><br>4. <strong>Parameter </strong>decorators: <a href="http://twitter.com/Inject">@Inject</a></li><li><strong>What is Rxjs?</strong><br>Reactive Extension for JavaScript is third party library used by Angular Team. RxJs is a reactive streams library used to work with asynchronous streams of data. Observable’s in RxJs, are used to represent asynchronous streams of data. Observable’s are more advanced version of Promises in JavaScript.</li><li><strong>What is View Encapsulation?</strong></li><li><strong>What is Subject in Angular?</strong></li><li><strong>Life Cycle of Angular?</strong></li><li><strong>What are the method in rxjs?</strong></li><li><strong>What is interpolation in Angular?</strong><br>Interpolation is one of the form of data binding, where we can access component’s data in a template. For interpolation we use double curly braces {{}}</li><li><strong>What is the use of polyfills.ts file in Angular?</strong><br> Polyfills in angular are few lines of code which make your application compatible for different browsers. The code we write is mostly in ES6(New Features: Overview and Comparison) and is not compatible with IE or firefox and needs some environment setups before being able to be viewed or used in these browsers.</li><li><strong>Why RxJs Observable’s?<br></strong>Angular team has recommended Observable’s for asynchronous calls because of:<br>a. Promises emit a single value where as Observable’s emit multiple value over a time.<br>b. Observable’s support functional operators such as map, filter, reduce etc.<br>c. Observable’scan be cancellable where Promises are not cancellable. If any http response is not required, Observable’s allows us to cancel the subscription where as promises execute either success or failure callback even if we don’t need the result.</li></ol><blockquote>Observable’s has another method called subscribe which listen to data coming through the stream.</blockquote><blockquote>Subscribe() method has three parameters. First parameter is a success callback which will be invoked upon receiving successful data from the stream. Second parameter is a error callback which will be invoked when observable returns a error <br>and third parameter is a complete callback which will be invoked upon successful streaming of values from observable. i.e Once complete() is invoked.</blockquote><p>More Questions with Answers are Coming Soon…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc16b692f93d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>