Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • GfG 160: Daily DSA
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • DSA
  • Practice Problems
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • Data Science
  • Machine Learning
  • Courses
  • Linux
  • DevOps
  • SQL
  • Web Development
  • System Design
  • Aptitude
  • GfG Premium
Open In App
Next Article:
What is Full Stack Development ?
Next article icon

How to Switch from Backend Developer to Frontend Developer

Last Updated : 25 Sep, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

In this technological world, People want to become a web developer and some of the working developers want to change their careers to different domains. Some backend developer wants to join the frontend development and want to work in a company as a frontend developer.

how to switch from backend-developer-to-frontend-developer

This article is about How you can transition your career from backend developer to frontend developer. If you are fresher and want to become a front-end developer, this will also help you to become a front-end developer. It includes Concepts, Steps to switch careers, and the roadmap to becoming a front-end developer.

What is Frontend Developer?

In web development, a front-end developer is the person who writes code for creating the front end of the website, What does it mean? A person who actually responsible for giving a good user interface to the website, So that people will like and people get attracted by the website. He not only creates the code for the website, but he also makes designs and UI. Without making the frontend the website only works and people don't get attracted. A frontend developer should have some knowledge of HTML, CSS, and other libraries to make a website better like Tailwind, bootstrap, and material UI.

Steps to switch from Backend Developer to Frontend Developer

Table of Content

  • Steps to switch from Backend Developer to Frontend Developer
    • Step 1: Understand the Technology
    • Step 2: Create projects
    • Step3: Create a portfolio
    • Step 4: Collaborate and Seek Feedback
    • Step 5: Continous Learning
  • Roadmap to become a frontend Developer
  • Benefits to become a frontend Developer
  • How Much Time It Requires?

Step 1: Understand the Technology

Backend developers know how to write code for the backend like Python (Django), PHP, C#, and NodeJs but they have to learn new skills for frontend like HTML, CSS, Bootstrap, JavaScript, Tailwind, or material-UI. It helps them to understand the concepts and code to write frontend. It is better to learn libraries and frameworks like React, Angular, Next.js, etc.

  • HTML: It stands for HyperText Markup Language, and is used to structure the document of your website. It will only give you the structure and you have to add more features to it So that it will be presentable.
  • CSS: Cascading Style Sheet is the styling language to style your document/website. It gives the nice look of your website, So that your website will get more users.
  • Bootstrap: It is the free and open-source framework to add CSS property to the website. It takes less time to add CSS to your website and make it better.
  • Tailwind: It is also the CSS framework to add CSS in the website, But it is the different from bootstrap. It does not have the pre-defined CSS, But you can also style your document with the mixing the CSS.
  • JavaScript: It is the Scripting language used to give the dynamic view of the website. It helps for giving the nice user interface and enhance the user experience.
  • React js: ReactJs is the javascript framework and have the power of creating a frontend website easily. It has all the files used to create the website easily.

Step 2: Create Projects

Creating a project is the best way to master any stack/technology. Creating many projects for frontend development will help you to understand and gain the hands on practice. It will also make sure the, You will never forget any skills and ensure productivity. You can find the project idea on frontend. It will help you start from basic and go up to advanced level. Start making project on the simple topic like resume builder, and Todo list. Why we need to create projects?

  • Boost the learning phase: While learning making projects will boost your learning speed and get fimilier to every aspects.
  • Easy to Learn: It is very easy way to learn from creating a project.
  • Real World practise: It will give you the real world problems and help you to solve the problem efficiently.
  • Create a good portfolio: It enhance your portfolio page, and enhance you skills set so that you can handle each and every problems.

Step3: Create a portfolio

Everyone has to show their skills to the HR, recuiters, and clients. So that they will get to know about your skill set and experience and showing your skills set is better if you show it in your portfolio. Not only it will make your client understand about your qualities, but also it makes a good impact on them. It ensures that everyone who look at your portfolio, they will make a deal with you. It is good to create a portfolio, So that you can showcase your skills set and experience in much better way. Your profile gives the good impression to the others including your HR, Interviewer, or your colleagues.

Step 4: Collaborate and Seek Feedback

Engane with Communities, Channels, Clients or forums for frontend developers to the areas which needs to be better. You have to meetup to exchange ideas and gain insights. You can use those idea to improve yourself and adapt new skills. You have to be updated from upcoming projects, ideas, skills coming to the demand.

Step 5: Continous Learning

Continuos learning is very important to gain the growth in this world. You have to know each of the upcoming features/technology and learn from those technology, so that you can compete the society. Bellow are the benefits of continuos learning.

  • To be unique: If you stay continue learning, you will be unique from others.
  • Hands on the technology: You have to practise and continue learning/practice will ensure the hands on technology
  • Good portfolio: If you follow all the step your portfolio will become good and perfect for any job.
  • Good for Career: Your career will be on the top, if you have hands on practice to the technology.

Roadmap to Become a Frontend Developer

  • Learn the Basics: It is the first step to become a frontend developer, that you have to learn the basics of frontend. It includes structure of computer, basics of computer and types of computers.
  • Learn How Internet works: Now its time to learn the core languages to used in frontend development. It includes HTML, CSS, JavaScript and some networking concepts like HTTP, DNS, Hosting, Browser, etc.
  • Pick a Framwork : Its time to learn the framework and get all the knowledge about this framework.
  • Version Control: Now learn the version control system to get the all of the concepts and contribution.

Want to learn frontend in depth, here is a complete frontend roadmap : Roadmap to frontend development

Benefits to Become a Frontend Developer

Their are many benefits to become a frontend Developer. You switch from backend developer to frontend developer it will be easy to make full stack project and it will be easy to create it. Some benefits are given below:

  • Good payout
  • Easy to Learn
  • Fast Development

How Much Time It Requires?

This question has different answers to different people. Some of them spend time for learning first then implementing, it takes 2 - 4 months to master in the frontend. Some of them learn by creating the projects, It takes less time to learn the fundamental and understand the frontend development. They mostly takes 1-2 Months to understand and create project according to the customer requirements. If you find the confidence on your skills then it is time to move to the some internship or frontend job, also you can try freelancer work. This will take less time to become a frontend developer, and can earn much more then previous job/work.

Must Read

  • Frontend Development
  • Frontend Framework

Conclusion

In conclusion, It is better to learn and know frontend also and don't stuck in only one domain. If you want to become frontend developer, it is easy to switch your career from backend to frontend. You will get hike in your salary and gain a good experience. You should follow the road map to become the frontend developer, which can give you the hands on experience.


Next Article
What is Full Stack Development ?
author
nitinkuhz4o
Improve
Article Tags :
  • GBlog
  • Frontend-Development
  • Backend-Development
  • GBlog 2024
  • Career Switch

Similar Reads

    Web Development

    How to become Web Developer [2025]
    How can I start learning web development? Is it easy? And how can I keep up with the latest web designing technologies? These are the questions that appear in every beginner's mind. There is also confusion between web designing and web development, but we’ll talk about web development. It depends on
    8 min read
    Begin Web Development with a Head Start
    To get a head start in web development, you can take the following steps: Learn the basics: Learn the basics of HTML, CSS, and JavaScript, which are the building blocks of web development. You can use online tutorials and resources, such as Codecademy, W3Schools, and FreeCodeCamp to start learning.
    8 min read
    10 Best Web Development Project Ideas For Beginners in 2024
    Learning web development is an exciting journey that opens doors to lots of creative possibilities. But for beginners, figuring out where to start with projects can be tricky. This article provides you with the Top 10 web development project ideas that are perfect for sharpening your skills in 2024.
    7 min read
    30+ Web Development Projects with Source Code [2025]
    Web development is one of the most in-demand career paths in the IT industry, experiencing consistent growth of around 20–25% annually. Whether you're a student starting out or an experienced professional looking to switch or advance your career, it's essential to go beyond theory and demonstrate yo
    4 min read
    100 Days of Web Development - A Complete Guide For Beginners
    How to become Web Developer? What is the salary of a Web Developer?What are the skills required to become a web developer? How many days will it take to become a web developer?To answer all these questions and give you a correct pathway, we have come up with 100 Days of Web Development that will gui
    7 min read

    Front-End Development

    Frontend Development
    Front-end Development is the development or creation of a user interface using some markup languages and other tools. It is the development of the user side where only user interaction will be counted. It consists of the interface where buttons, texts, alignments, etc are involved and used by the us
    8 min read
    What is Frontend Development? Skills, Salary and Roles
    Want to build those beautiful UIs that you scroll through to search for something? Want to become a front-end developer? You have landed at the right place.In this article, we'll be talking about everything that you should know in order to build your front-end development journey. We'll be covering
    5 min read
    What is a Frontend Developer ?
    A Front-End Developer is type of a Software Engineer who handles the User Interface of a website. As we know web development can be divided into three categories Front-End Development, Back-End Development, and Full-Stack Development. The persons who know Front-End Development are known as Front-End
    3 min read
    Frontend Developer Roadmap 2025
    Frontend development means to design the face of a website or application. It involves working on the appearance of the website. Building interactive buttons, using images and animations, or any other aspect that involves enhancing the appearance of the webpage.A web developer is one of the most dem
    8 min read
    How to Become a Front-End Developer? [2025]
    Whenever you visit a website, the look and feel is often the first thing that influences whether you'll continue exploring it or not. A website with a poor design or user interface can quickly turn users away. That's where the Front-End Developer comes in!A Front-End Developer is responsible for ens
    7 min read
    What Skills Should a Front-End Developer Have?
    Are you keen on becoming a front-end developer? How interesting! Front-end developers are like magic creators who create websites that show up extraordinary and work well. But what must you have to end up one? Let us explore the significant abilities each front-end engineer should have. What is Fron
    13 min read
    How Much JavaScript is Required to Become Front End Developer?
    Front-end Development is the part of web development that is focused on the user end of a website or web application. It involves the development of elements that provides the interaction between the user and browsers. HTML, CSS, and JavaScript are the main components used by front-end developers. H
    8 min read
    10 Best Front-End Development Courses [2025]
    Do you want to become a front-end developer? If yes, are you looking for a path/guide which will help you to become one? You've come to the right place. Let's understand what is front-end development first. Frontend development is the most required and high-paying skill, companies are searching for.
    11 min read
    Best Books to Learn Front-End Web Development
    There is a huge demand for Front-End Web Developers or Web Designers in IT, and Front-End Developer Jobs are also some of the highest-paying jobs. These all are the reason people love to choose this field. Frontend development is all about UI/UX, where the main concern is related to the layout, styl
    9 min read
    10 Best Tools For Front-End Web Development
    As you can see, online businesses are becoming more and more concerned about the UI of their respective websites to provide a better user experience and generate better ROI - the demand for Front-End Developers has also increased significantly in recent years. Reports say that an enriching, creative
    9 min read
    How Much DSA is Required For Front End Developer Interview?
    Front-end developer creates the user-facing component such as the user interface(UI) and user experience(UX), that determines how the user interacts with the digital product. Front-end engineer works with generally HTML, CSS, JavaScript, and frameworks like React or Angular. But having a solid found
    10 min read
    Frontend Developer Interview Questions and Answers
    Frontend development is an important part of web applications, and it is used to build dynamic and user-friendly web applications with an interactive user interface (UI). Many companies are hiring skilled Frontend developers with expertise in HTML, CSS, JavaScript, and modern frameworks and librarie
    15+ min read

    Back-End Development

    What is Backend Development? Skills, Salary and Roles
    Backend development is a blessing to all of us that we are able to get everything done by just sitting at home. Be it booking tickets, watching movies, or any sort of thing, backend development plays a major role in building an application. It is also one of the highly demanding professions in the I
    7 min read
    Backend Development
    Backend Development involves the logic, database, and other operations that are built behind the scenes to run the web servers efficiently. Backend Development refers to the server-side development of the web application. It is the part of the application where the server and database reside and the
    12 min read
    Top 10 Backend Technologies You Must Know
    To provide any responsive and effective software solution, frontend, and backend are the two most essential technologies that work together. A back-end framework is used to create server-side web architectures stably and efficiently. Backend technologies focus on improving the hidden aspects of the
    11 min read
    How to Become a Backend Developer in 2025
    A Backend Developer is responsible for the server-side of web applications. Unlike frontend developers, who focus on the parts of a website users interact with, backend developers ensure that the systems and databases work seamlessly to support the front-end operations. Server-Side Development: Writ
    9 min read
    10 Skills to Become a Backend Developer in 2024
    A backend developer is responsible for writing backend codes and communicating when the user triggers any particular action. Today they have become the backbone of web development and they’re in high demand on a vast scale of companies. Whatever you do in your application, the back end is responsibl
    10 min read
    10 Best Back-End Programming Languages in 2024
    If you are planning to get started with web development, then you must be aware that web development is broadly classified into two parts i.e. frontend development and backend development. The primary difference between these two is that frontend development serves the client side in which the focus
    7 min read
    Node.js Basics: Back-End Development in MERN Stack
    Node.js is an open-source and cross-platform JavaScript runtime environment. It’s a powerful tool suitable for a wide range of projects. Node.js stands out as a game-changer. Imagine using the power of JavaScript not only in your browser but also on the server side. Table of Content What is MERN sta
    7 min read
    How to Become a Backend Developer in 2025
    A Backend Developer is responsible for the server-side of web applications. Unlike frontend developers, who focus on the parts of a website users interact with, backend developers ensure that the systems and databases work seamlessly to support the front-end operations. Server-Side Development: Writ
    9 min read
    Backend Developer Interview Questions
    Backend development involves working on the server side of web applications, where the logic, database interactions, and server management take place. It focuses on handling data, processing requests from clients, and generating appropriate responses.In this Top Backend Development interview questio
    15+ min read

    Fronted Vs Backend Development

    Frontend vs Backend Development
    In web development, the terms frontend and backend are essential for understanding how websites and web applications work. These two components make up the core of any modern web application, each serving a unique purpose. Frontend is what users see and interact with on a website, like the layout, b
    6 min read
    FrontEnd vs BackEnd: Which One Should I Choose?
    Developing a website is a wonderful task that now every individual wishes to do. There are more than 1 billion websites running today and more than 200 million of them are active. Web Development has become one of the most demanding and highest-paying jobs in India or outside India. The integral par
    7 min read
    How to Switch from Frontend to Backend Developer
    In this digital world, backend development is crucial to creating any application and solution. It involves creating the backend of the application which can handle the API calls, send data to the client, receive requests, and authenticate users. This article will help you understand about the backe
    8 min read
    How to Switch from Backend Developer to Frontend Developer
    In this technological world, People want to become a web developer and some of the working developers want to change their careers to different domains. Some backend developer wants to join the frontend development and want to work in a company as a frontend developer. This article is about How you
    8 min read

    Full Stack Development

    What is Full Stack Development ?
    Full Stack Development refers to the development of both front end (client side) and back end (server side) portions of web applications. If you want to learn in full structure form then you should enrol in our Full stack devloper course! You'll learn to create powerful web applications from scratch
    6 min read
    Full Stack Developer Roadmap [2025 Updated]
    Web Developer/ Full Stack Web Developer - How do you feel when you tag yourself with such titles? A long journey takes place to be called by such names. In the beginning, you might feel bored or terrified, but, trust me, this is the most popular and interesting field one should work on. You can also
    15 min read
    How to Become a Full Stack Web Developer in 2025
    How did you feel when you created your first login form on a web page after so many trials and tested templates (don't say that you made everything from scratch...)? ... How did you feel when you gave the layout to your first web application after multiple changes (Yes...you took the reference of so
    9 min read
    Requirements to become a full stack developer
    A full stack developer is a person who is an expert in designing, building, maintaining, and updating both the front end and back end of a website or a web application. A full-stack developer is someone who can develop both client and server software. One should be well familiar with front-end, and
    8 min read
    Full Stack Developer Salary in India (2024)
    Full Stack Developer Salary in India- The average Full Stack Developer salary in India ranges between 5 to 9 LPA. The number can go as high as 16 LPA for experienced professionals with the right skills. Full-stack developers are responsible for building a web application's front and back end. Full-s
    9 min read
    Top 10 Full Stack Development Trends in 2025
    Full stack development is the practice of building software systems or web applications that comprise both front-end and back-end components. A full-stack developer is good at multiple layers of the software development cycle and can work on different terms in the application building including, UI,
    10 min read
    12 Best Full Stack Project Ideas in 2025
    Full stack developers handle everything from front-end to back-end, making them very valuable in tech. To learn full stack and show off your skills, building real projects is a must. In this article, you'll find 12 great full stack project ideas to boost your portfolio. But first, let’s understand w
    14 min read
    Full Stack Developer Interview Questions and Answers - 2025
    Full Stack Development is a crucial aspect of modern web applications, involving both frontend and backend technologies to build dynamic, scalable, and high-performance applications. Skilled Full Stack Developers proficient in HTML, CSS, JavaScript, React, Node.js, Express, MongoDB, Spring Boot, Dja
    15+ min read

    Full Stack Development Stacks

    MERN Stack
    The MERN stack is a widely adopted full-stack development framework that simplifies the creation of modern web applications. Using JavaScript for both the frontend and backend enables developers to efficiently build robust, scalable, and dynamic applications.What is MERN Stack?MERN Stack is a JavaSc
    9 min read
    MEAN Stack
    In the world of full-stack development, the MEAN stack has became one of the top choice for building dynamic and robust web applications. Web development refers to the creating, building, and maintaining of websites. It includes aspects such as web design, web publishing, web programming, and databa
    9 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

'); // $('.spinner-loading-overlay').show(); let script = document.createElement('script'); script.src = 'https://assets.geeksforgeeks.org/v2/editor-prod/static/js/bundle.min.js'; script.defer = true document.head.appendChild(script); script.onload = function() { suggestionModalEditor() //to add editor in suggestion modal if(loginData && loginData.premiumConsent){ personalNoteEditor() //to load editor in personal note } } script.onerror = function() { if($('.editorError').length){ $('.editorError').remove(); } var messageDiv = $('
').text('Editor not loaded due to some issues'); $('#suggestion-section-textarea').append(messageDiv); $('.suggest-bottom-btn').hide(); $('.suggestion-section').hide(); editorLoaded = false; } }); //suggestion modal editor function suggestionModalEditor(){ // editor params const params = { data: undefined, plugins: ["BOLD", "ITALIC", "UNDERLINE", "PREBLOCK"], } // loading editor try { suggestEditorInstance = new GFGEditorWrapper("suggestion-section-textarea", params, { appNode: true }) suggestEditorInstance._createEditor("") $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = true; } catch (error) { $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = false; } } //personal note editor function personalNoteEditor(){ // editor params const params = { data: undefined, plugins: ["UNDO", "REDO", "BOLD", "ITALIC", "NUMBERED_LIST", "BULLET_LIST", "TEXTALIGNMENTDROPDOWN"], placeholderText: "Description to be......", } // loading editor try { let notesEditorInstance = new GFGEditorWrapper("pn-editor", params, { appNode: true }) notesEditorInstance._createEditor(loginData&&loginData.user_personal_note?loginData.user_personal_note:"") $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = true; } catch (error) { $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = false; } } var lockedCasesHtml = `You can suggest the changes for now and it will be under 'My Suggestions' Tab on Write.

You will be notified via email once the article is available for improvement. Thank you for your valuable feedback!`; var badgesRequiredHtml = `It seems that you do not meet the eligibility criteria to create improvements for this article, as only users who have earned specific badges are permitted to do so.

However, you can still create improvements through the Pick for Improvement section.`; jQuery('.improve-header-sec-child').on('click', function(){ jQuery('.improve-modal--overlay').hide(); $('.improve-modal--suggestion').hide(); jQuery('#suggestion-modal-alert').hide(); }); $('.suggest-change_wrapper, .locked-status--impove-modal .improve-bottom-btn').on('click',function(){ // when suggest changes option is clicked $('.ContentEditable__root').text(""); $('.suggest-bottom-btn').html("Suggest changes"); $('.thank-you-message').css("display","none"); $('.improve-modal--improvement').hide(); $('.improve-modal--suggestion').show(); $('#suggestion-section-textarea').show(); jQuery('#suggestion-modal-alert').hide(); if(suggestEditorInstance !== null){ suggestEditorInstance.setEditorValue(""); } $('.suggestion-section').css('display', 'block'); jQuery('.suggest-bottom-btn').css("display","block"); }); $('.create-improvement_wrapper').on('click',function(){ // when create improvement option clicked then improvement reason will be shown if(loginData && loginData.isLoggedIn) { $('body').append('
'); $('.spinner-loading-overlay').show(); jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id }), success:function(result) { $('.spinner-loading-overlay:eq(0)').remove(); $('.improve-modal--overlay').hide(); $('.unlocked-status--improve-modal-content').css("display","none"); $('.create-improvement-redirection-to-write').attr('href',writeUrl + 'improve-post/' + `${result.id}` + '/', '_blank'); $('.create-improvement-redirection-to-write')[0].click(); }, error:function(e) { showErrorMessage(e.responseJSON,e.status) }, }); } else { if(loginData && !loginData.isLoggedIn) { $('.improve-modal--overlay').hide(); if ($('.header-main__wrapper').find('.header-main__signup.login-modal-btn').length) { $('.header-main__wrapper').find('.header-main__signup.login-modal-btn').click(); } return; } } }); $('.left-arrow-icon_wrapper').on('click',function(){ if($('.improve-modal--suggestion').is(":visible")) $('.improve-modal--suggestion').hide(); else{ } $('.improve-modal--improvement').show(); }); const showErrorMessage = (result,statusCode) => { if(!result) return; $('.spinner-loading-overlay:eq(0)').remove(); if(statusCode == 403) { $('.improve-modal--improve-content.error-message').html(result.message); jQuery('.improve-modal--overlay').show(); jQuery('.improve-modal--improvement').show(); $('.locked-status--impove-modal').css("display","block"); $('.unlocked-status--improve-modal-content').css("display","none"); $('.improve-modal--improvement').attr("status","locked"); return; } } function suggestionCall() { var editorValue = suggestEditorInstance.getValue(); var suggest_val = $(".ContentEditable__root").find("[data-lexical-text='true']").map(function() { return $(this).text().trim(); }).get().join(' '); suggest_val = suggest_val.replace(/\s+/g, ' ').trim(); var array_String= suggest_val.split(" ") //array of words var gCaptchaToken = $("#g-recaptcha-response-suggestion-form").val(); var error_msg = false; if(suggest_val != "" && array_String.length >=4){ if(editorValue.length <= 2000){ var payload = { "gfg_post_id" : `${post_id}`, "suggestion" : `${editorValue}`, } if(!loginData || !loginData.isLoggedIn) // User is not logged in payload["g-recaptcha-token"] = gCaptchaToken jQuery.ajax({ type:'post', url: "https://apiwrite.geeksforgeeks.org/suggestions/auth/create/", xhrFields: { withCredentials: true }, crossDomain: true, contentType:'application/json', data: JSON.stringify(payload), success:function(data) { if(!loginData || !loginData.isLoggedIn) { grecaptcha.reset(); } jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('.suggest-bottom-btn').css("display","none"); $('#suggestion-section-textarea').hide() $('.thank-you-message').css('display', 'flex'); $('.suggestion-section').css('display', 'none'); jQuery('#suggestion-modal-alert').hide(); }, error:function(data) { if(!loginData || !loginData.isLoggedIn) { grecaptcha.reset(); } jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Something went wrong."); jQuery('#suggestion-modal-alert').show(); error_msg = true; } }); } else{ jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Minimum 4 Words and Maximum Words limit is 1000."); jQuery('#suggestion-modal-alert').show(); jQuery('.ContentEditable__root').focus(); error_msg = true; } } else{ jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Enter atleast four words !"); jQuery('#suggestion-modal-alert').show(); jQuery('.ContentEditable__root').focus(); error_msg = true; } if(error_msg){ setTimeout(() => { jQuery('.ContentEditable__root').focus(); jQuery('#suggestion-modal-alert').hide(); }, 3000); } } document.querySelector('.suggest-bottom-btn').addEventListener('click', function(){ jQuery('body').append('
'); jQuery('.spinner-loading-overlay').show(); if(loginData && loginData.isLoggedIn) { suggestionCall(); return; } // script for grecaptcha loaded in loginmodal.html and call function to set the token setGoogleRecaptcha(); }); $('.improvement-bottom-btn.create-improvement-btn').click(function() { //create improvement button is clicked $('body').append('
'); $('.spinner-loading-overlay').show(); // send this option via create-improvement-post api jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id }), success:function(result) { $('.spinner-loading-overlay:eq(0)').remove(); $('.improve-modal--overlay').hide(); $('.create-improvement-redirection-to-write').attr('href',writeUrl + 'improve-post/' + `${result.id}` + '/', '_blank'); $('.create-improvement-redirection-to-write')[0].click(); }, error:function(e) { showErrorMessage(e.responseJSON,e.status); }, }); });
"For an ad-free experience and exclusive features, subscribe to our Premium Plan!"
Continue without supporting
`; $('body').append(adBlockerModal); $('body').addClass('body-for-ad-blocker'); const modal = document.getElementById("adBlockerModal"); modal.style.display = "block"; } function handleAdBlockerClick(type){ if(type == 'disabled'){ window.location.reload(); } else if(type == 'info'){ document.getElementById("ad-blocker-div").style.display = "none"; document.getElementById("ad-blocker-info-div").style.display = "flex"; handleAdBlockerIconClick(0); } } var lastSelected= null; //Mapping of name and video URL with the index. const adBlockerVideoMap = [ ['Ad Block Plus','https://media.geeksforgeeks.org/auth-dashboard-uploads/abp-blocker-min.mp4'], ['Ad Block','https://media.geeksforgeeks.org/auth-dashboard-uploads/Ad-block-min.mp4'], ['uBlock Origin','https://media.geeksforgeeks.org/auth-dashboard-uploads/ub-blocke-min.mp4'], ['uBlock','https://media.geeksforgeeks.org/auth-dashboard-uploads/U-blocker-min.mp4'], ] function handleAdBlockerIconClick(currSelected){ const videocontainer = document.getElementById('ad-blocker-info-div-gif'); const videosource = document.getElementById('ad-blocker-info-div-gif-src'); if(lastSelected != null){ document.getElementById("ad-blocker-info-div-icons-"+lastSelected).style.backgroundColor = "white"; document.getElementById("ad-blocker-info-div-icons-"+lastSelected).style.borderColor = "#D6D6D6"; } document.getElementById("ad-blocker-info-div-icons-"+currSelected).style.backgroundColor = "#D9D9D9"; document.getElementById("ad-blocker-info-div-icons-"+currSelected).style.borderColor = "#848484"; document.getElementById('ad-blocker-info-div-name-span').innerHTML = adBlockerVideoMap[currSelected][0] videocontainer.pause(); videosource.setAttribute('src', adBlockerVideoMap[currSelected][1]); videocontainer.load(); videocontainer.play(); lastSelected = currSelected; }

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences