<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Js on Everyone Has a Story</title><link>https://bhaveshsgupta.com/tags/js/</link><description>Recent content in Js on Everyone Has a Story</description><generator>Hugo</generator><language>en-us</language><managingEditor>BhaveshSGupta@disroot.org (Bhavesh S. Gupta)</managingEditor><webMaster>BhaveshSGupta@disroot.org (Bhavesh S. Gupta)</webMaster><lastBuildDate>Sun, 06 Sep 2026 09:08:41 +0530</lastBuildDate><atom:link href="https://bhaveshsgupta.com/tags/js/index.xml" rel="self" type="application/rss+xml"/><item><title>The Fizzbuzz Problem 2</title><link>https://bhaveshsgupta.com/blog/the-fizzbuzz-problem-2/</link><pubDate>Tue, 02 Feb 2021 08:56:01 +0530</pubDate><author>BhaveshSGupta@disroot.org (Bhavesh S. Gupta)</author><guid>https://bhaveshsgupta.com/blog/the-fizzbuzz-problem-2/</guid><description>&lt;p&gt;Last time I had stopped optimizing this the problem more because we were having a discussion where string concatination is a costly opperation. So yesterday I was talking with Nishchay how can about the previous blog and other things at that point we started on optimizing this further avoiding string contactination as well.&lt;/p&gt;</description></item><item><title>The Fizzbuzz Problem</title><link>https://bhaveshsgupta.com/blog/the-fizzbuzz-problem/</link><pubDate>Sun, 31 Jan 2021 16:42:25 +0530</pubDate><author>BhaveshSGupta@disroot.org (Bhavesh S. Gupta)</author><guid>https://bhaveshsgupta.com/blog/the-fizzbuzz-problem/</guid><description>&lt;p&gt;Recently I have been giving few interviews and I have faced this problem twice or thrice I guess where an interviewer asks me this problem.&lt;/p&gt;</description></item><item><title>Convert Excel to Json</title><link>https://bhaveshsgupta.com/blog/convert-excel-to-json/</link><pubDate>Sat, 14 Sep 2019 19:54:55 +0530</pubDate><author>BhaveshSGupta@disroot.org (Bhavesh S. Gupta)</author><guid>https://bhaveshsgupta.com/blog/convert-excel-to-json/</guid><description>&lt;p&gt;Some time in our projects we need data in json files(mostly web projects). But collecting and managing data in json files is harder(At least this is what I feel) compared to excel. I had recently ran into a similar situation where I need some data. Data is going to be provided by a non-technical person/client. And there going to be several rounds of it.&lt;/p&gt;&#10;&lt;p&gt;So I was looking for options what can be done here, where I found several online tools which could be used for same. But I don&amp;rsquo;t want to use that because of course privacy. I don&amp;rsquo;t want to upload an excel file to a unknown application which would process it server side give me results.&lt;/p&gt;</description></item><item><title>Object-Oriented Programming With JavaScript (part 1)</title><link>https://bhaveshsgupta.com/blog/object-oriented-programming-with-javascript-part-1/</link><pubDate>Mon, 29 Jul 2019 16:56:15 +0530</pubDate><author>BhaveshSGupta@disroot.org (Bhavesh S. Gupta)</author><guid>https://bhaveshsgupta.com/blog/object-oriented-programming-with-javascript-part-1/</guid><description>&lt;p&gt;I started to learn Object-oriented Programming in JavaScript using this &#10;&lt;a href="https://udemy.com/javascript-object-oriented-programming/" target="_blank" rel="noopener noreferrer"&gt;course&lt;/a&gt;&#10;. This post is more of notes for the course I am taking.&lt;/p&gt;</description></item><item><title>Javascript uses utf16 and Html utf8, then how things work together?</title><link>https://bhaveshsgupta.com/blog/javascript-utf16-and-html-utf8-how-things-work-together/</link><pubDate>Tue, 17 Jul 2018 05:45:40 +0530</pubDate><author>BhaveshSGupta@disroot.org (Bhavesh S. Gupta)</author><guid>https://bhaveshsgupta.com/blog/javascript-utf16-and-html-utf8-how-things-work-together/</guid><description>&lt;p&gt;This was part of one the discussion of dgplug discussion, that javascript uses utf-16 and html we usually use utf-8 as character encoding then how things work out.&lt;/p&gt;&#10;&lt;p&gt;This was quite interesting on how things work around because of this. So I was reading around to find answers for the above question and I landed upon &#10;&lt;a href="https://stackoverflow.com/questions/12114477/how-do-i-correctly-insert-unicode-in-an-html-title-using-javascript/12114520#12114520" target="_blank" rel="noopener noreferrer"&gt;this&lt;/a&gt;&#10;. And this text from the answer in the link helps understand how things work. &amp;ldquo;JavaScript string constants are parsed by the JavaScript parser. Text inside HTML tags is parsed by the HTML parser. The two languages (and, by extension, their parsers) are different, and in particular they have different ways of representing characters by character code.&amp;rdquo; Basically they won&amp;rsquo;t have issue with different character encoding as they would render same character. More over javascript parser would parse the character into the html when you use innerHTML method.&lt;/p&gt;</description></item></channel></rss>