Home / Blog / Information Technology / Learn Top 10 In-Demand Programming Languages of the Future
- What are the Top 10 Programming Languages of the Future?
- What Programming Languages are Projected to be Most Relevant in the Future Job Market in India?
- How Can Online Programming Language Courses Enhance Job Prospects in India?
View All
India is rapidly emerging as a global digital leader, as is evident in the State of India’s Digital Economy report by the Indian Council for Research on International Economic Relations (ICRIER) Prosus Centre for Internet and Digital Economy (IPCIDE) by leveraging technologies like AI, ML, and big data. Consequently, this will lead to the development of more mobile and web applications and artificial intelligence systems and models. Ultimately, there will be an extremely high demand for programming skills in India in the next few years. However, there are 700+ programming languages worldwide, making it difficult to shortlist relevant languages for learning. We’ve shortlisted the top 10 programming languages of the future for you to learn and boost your career.
According to the TIOBE Programming Community index, the following programming languages have been consistently ranked as the top 10 programming languages of the future. The index ranks programming languages based on the number of engineers skilled in that particular language and the volume of search queries for programming languages on various search engines.
Python
It is one of the top 10 programming languages of the future and has stayed that way for several years. Python is a general-purpose, high-level programming language that uses shorter codes compared to other programming languages.
Moreover, Python has a large library with multiple built-in methods. Some of the best features that make Python one of the best programming languages for the future are that it is:
- Free and open-source
- User-friendly and easy-to-code
- An interpreted language that makes debugging easier in comparison to compiled languages
- A hybrid programming language that supports both object-oriented programming and structured programming
- Highly compatible with multiple hardware platforms such as Windows, Linux, and macOS
ALSO READ: Why is it Important to Learn Python in Data Science?
C
C is one of the oldest programming languages in the world but still ranks among the top 10 programming languages of the future. It is commonly called the mother language because it serves as the base for many other programming languages, such as C++, Java, and PHP (Hypertext Preprocessor).
Its versatility and flexibility are two of the most significant reasons C is still popular. Additionally, it requires minimum commands and gives maximum control to developers.
In addition to the above, some other factors that contribute to its popularity are:
- Easy portability, which allows it to run smoothly on various platforms
- An arbitrary memory address access and pointer arithmetic
- Allows developers complete control over allocation and de-allocating memory
- A hyper-efficient programming language with a large set of libraries and source codes
C++
It is a statically typed programming language that comprises elements for object-oriented programming development. Its consistent popularity is mainly due to low compilation time, easy portability, rich library support, and high memory management control.
Java
Java is another one of the top 10 programming languages of the future for several years, especially for Android app development. Developers use Java for multiple purposes, such as website development, gaming development, artificial intelligence, web applications, and big data technologies. This is primarily due to its high reliability, ease of use, fast scalability, and high security.
C#
This language belongs to the C family and was developed by Microsoft. C# is also a high-level programming language that supports object-oriented programming. Its simple learning curve and versatility are the two most significant reasons for its popularity. Other benefits of using C# are faster development time, high scalability, and access to a large developer community.
JavaScript
JS or JavaScript is another high-level interpreted programming language that helps build advanced and interactive websites. It has minimal runtime and requires fewer resources than other programming languages. Thus, many developers use JS for game development and making complex applications.
Visual Basic
Another one of the top 10 programming languages of the future, Visual Basic, is an event-driven language developed by Microsoft. This high-level programming language has a simple English-like language syntax and a user-friendly interface. Thus, it allows developers to build applications easily.
PHP
It is an open-source general-purpose scripting programming language, essentially used for web development. PHP is primarily a server-side programming language that is fast, simple, versatile, and highly flexible. Moreover, it allows web developers to create content that can easily engage with databases.
Assembly Language
Contrary to other programming languages, this is a low-level language integrated into specific computer architecture to communicate directly with the computer’s hardware. Computers use machine language, which comprises binary codes that are difficult for humans to understand. On the contrary, Assembly language uses mnemonic code that humans can easily understand.
SQL
Structured Query Language (SQL) is another one of the top 10 programming languages of the future. It is mainly used for editing and manipulating relational database management systems. The reasons it is sought-after are its simplicity and ease of use.
ALSO READ: Which Coding Language Should You Learn? Check This List Before You Start!
Which Programming Languages Offer the Best Career Opportunities in India?
The following are some of the top programming languages of the future in terms of better-paying career opportunities:
Programming Language | Average Annual Salary in India |
Python | ₹6,79,124 |
JavaScript | ₹5,14,492 |
Java | ₹6,36,300 |
C++ | ₹8,08,200 |
SQL | ₹4,78,608 |
ALSO READ: A Coding Language List for Every Type of Coder: What’s Your Pick?
Relevant Programming Languages Based on Industry
Let’s see the most useful programming languages for various industries.
AI and ML
As the use of AI and Machine learning technologies in India expands, top AI programming languages such as Python, Java, C++, JavaScript, and R will become more relevant in the future.
Technology
The global Tech Skills & Trends Report 2022 suggests that Java, JavaScript, and SQL developers are the most sought-after in the tech industry. In fact, Java, HTML, and CSS are the most in-demand front-end programming languages. With the massive growth of the tech industry in India, these programming languages will become more relevant in the future.
Automotive
SQL, Java, and JavaScript are also the most popular programming languages used in the automotive sector. As the automotive sector in India is booming, these three languages make it to the list of top 10 programming languages for the future.
Finance
Since the finance industry requires applications with advanced security, it uses programming languages like SQL, Java, and JavaScript. The digital payments sector in India is expected to grow by over $1 trillion by 2030, leading to massive growth. Hence, programming languages like Java and SQL will be in high demand.
Healthcare
The healthcare industry needs interactive applications built using Java, HTML, CSS, and JavaScript programming languages. The increasing integration of technology in the Indian healthcare sector will likely create high demand for these languages.
Relevant Programming Languages Based on Popularity
One of the key factors in determining the future relevance of programming languages is understanding the most popular programming languages among developers. The popular ones are those that are flexible, user-friendly, and offer many useful features. According to Statista, the following is a list of the most commonly used programming languages by developers worldwide.
- JavaScript: 63.61% of developers use this programming language
- HTML: Almost 53% of developers prefer HTML
- Python: Around 50% of developers prefer to use Python
- SQL: Nearly 49% of developers use SQL programming language
- TypeScript: Over 38% of developers use the TypeScript programming language
How Can Online Programming Language Courses Enhance Job Prospects in India?
According to India Skills Report, 2022, companies are no longer looking for employees to fit specific roles with defined responsibilities. Because of rapid advancements in the business and tech industries, professionals must constantly learn and upskill themselves. They should have knowledge of the latest technology stack, software development, and cloud computing practices for a competitive edge.
Online programming language certification courses are highly beneficial in these challenging times as they teach practical coding, programming, and other technical skills to professionals. Moreover, they also help you stay updated with relevant technology trends and offer advanced programming knowledge. Additionally, online programming courses allow you to gain insights into the real-world technical challenges businesses face and train you to solve those challenges. Explore Emeritus’ online courses to learn the top 10 programming languages of the future and accelerate your career.
Write to us at [email protected]
Information Technology Tutorials
About the Author
S
Content Writer, Emeritus BlogSneha is a content marketing professional with over four years of experience in helping brands achieve their marketing goals. She crafts research-based, engaging content, making sure to showcase a bit of her creative side in every piece she writes. Sneha spends most of her time writing, reading, or drinking coffee. You will often find her practicing headstands or inversions to clear her mind.
Read More About the Author
Accelerate your career with the right programme
Share your details and let our experts guide you
Looking to upskill? Talk to us.
') .hide() .fadeIn(300, function() { jQuery('.success-msg-wrap').show(); }) .delay(2000) .fadeOut(500, function() { jQuery('.success-msg-wrap').hide(); }); if (jQuery(window).width() < 768) { jQuery('html,body').animate({ scrollTop: jQuery(".success-msg-wrap").offset().top - 80}, 1200); } LUX.addData('lead-form-submit', 'check-upcoming-programs'); console.log("submitted"); } else { // Handle the error response here jQuery('#frmleadsurvey')[0].reset(); jQuery('input#country_code_leadsurvey').attr("value", "+91"); jQuery("#explicitOptIn_leadsurvey").css("display", "none"); jQuery("#implicitOptIn_leadsurvey").css("display", "block"); btn.val("Submit", true); trackPoint.trigger({"type":"click","event":"lead-form","event_properties":{"lead-form":{"label": "submit"},"content_data":{"sectionName":"check-upcoming-programs","uiComponent":"componentLeadForm"},"program":{"program_name":"Others","psfid":"01tAy000000EsqQIAS","school_name":"","category":""}}}); jQuery('#req_call_back_fail_msg').html('
It seems that our server is currently experiencing some technical difficulties.
Please try again later. We apologize for the inconvenience.
') .hide() .fadeIn(300, function() { jQuery('#req_call_back_fail_msg').show(); }) .delay(2000) .fadeOut(500, function() { jQuery('#req_call_back_fail_msg').hide(); }); if (jQuery(window).width() < 768) { jQuery('html,body').animate({ scrollTop: jQuery("#req_call_back_fail_msg").offset().top - 80}, 1200); } LUX.addData('lead-form-submit', 'check-upcoming-programs'); console.log("submitted"); } } // form.submit(); } ); } }); //WEB-2432-Avoid an excessive DOM size var countryList = [{"country":"Afghanistan","code":"+93","data-select":"","gdpr":"0","value":"Afghanistan"},{"country":"Aland Islands","code":"+358","data-select":"","gdpr":"0","value":"Aland Islands"},{"country":"Albania","code":"+355","data-select":"","gdpr":"0","value":"Albania"},{"country":"Algeria","code":"+213","data-select":"","gdpr":"0","value":"Algeria"},{"country":"American Samoa","code":"+1","data-select":"","gdpr":"0","value":"American Samoa"},{"country":"Andorra","code":"+376","data-select":"","gdpr":"0","value":"Andorra"},{"country":"Angola","code":"+244","data-select":"","gdpr":"0","value":"Angola"},{"country":"Anguilla","code":"+1","data-select":"","gdpr":"0","value":"Anguilla"},{"country":"Antarctica","code":"+672","data-select":"","gdpr":"0","value":"Antarctica"},{"country":"Antigua and Barbuda","code":"+1","data-select":"","gdpr":"0","value":"Antigua and Barbuda"},{"country":"Argentina","code":"+54","data-select":"","gdpr":"0","value":"Argentina"},{"country":"Armenia","code":"+374","data-select":"","gdpr":"0","value":"Armenia"},{"country":"Aruba","code":"+297","data-select":"","gdpr":"0","value":"Aruba"},{"country":"Australia","code":"+61","data-select":"","gdpr":"0","value":"Australia"},{"country":"Austria","code":"+43","data-select":"","gdpr":"1","value":"Austria"},{"country":"Azerbaijan","code":"+994","data-select":"","gdpr":"0","value":"Azerbaijan"},{"country":"Bahamas","code":"+1","data-select":"","gdpr":"0","value":"Bahamas"},{"country":"Bahrain","code":"+973","data-select":"","gdpr":"0","value":"Bahrain"},{"country":"Bangladesh","code":"+880","data-select":"","gdpr":"0","value":"Bangladesh"},{"country":"Barbados","code":"+1","data-select":"","gdpr":"0","value":"Barbados"},{"country":"Belarus","code":"+375","data-select":"","gdpr":"0","value":"Belarus"},{"country":"Belgium","code":"+32","data-select":"","gdpr":"1","value":"Belgium"},{"country":"Belize","code":"+501","data-select":"","gdpr":"0","value":"Belize"},{"country":"Benin","code":"+229","data-select":"","gdpr":"0","value":"Benin"},{"country":"Bermuda","code":"+1","data-select":"","gdpr":"0","value":"Bermuda"},{"country":"Bhutan","code":"+975","data-select":"","gdpr":"0","value":"Bhutan"},{"country":"Bolivia","code":"+591","data-select":"","gdpr":"0","value":"Bolivia"},{"country":"Bonaire, Sint Eustatius and Saba","code":"+599","data-select":"","gdpr":"0","value":"Bonaire, Sint Eustatius and Saba"},{"country":"Bosnia and Herzegovina","code":"+387","data-select":"","gdpr":"0","value":"Bosnia and Herzegovina"},{"country":"Botswana","code":"+267","data-select":"","gdpr":"0","value":"Botswana"},{"country":"Bouvet Island","code":"+47","data-select":"","gdpr":"0","value":"Bouvet Island"},{"country":"Brazil","code":"+55","data-select":"","gdpr":"1","value":"Brazil"},{"country":"British Indian Ocean Territory","code":"+246","data-select":"","gdpr":"0","value":"British Indian Ocean Territory"},{"country":"Brunei","code":"+673","data-select":"","gdpr":"0","value":"Brunei"},{"country":"Bulgaria","code":"+357","data-select":"","gdpr":"1","value":"Bulgaria"},{"country":"Burkina Faso","code":"+226","data-select":"","gdpr":"0","value":"Burkina Faso"},{"country":"Burundi","code":"+257","data-select":"","gdpr":"0","value":"Burundi"},{"country":"Cambodia","code":"+855","data-select":"","gdpr":"0","value":"Cambodia"},{"country":"Cameroon","code":"+237","data-select":"","gdpr":"0","value":"Cameroon"},{"country":"Canada","code":"+1","data-select":"","gdpr":"0","value":"Canada"},{"country":"Cape Verde","code":"+238","data-select":"","gdpr":"0","value":"Cape Verde"},{"country":"Cayman Islands","code":"+1","data-select":"","gdpr":"0","value":"Cayman Islands"},{"country":"Central African Republic","code":"+236","data-select":"","gdpr":"0","value":"Central African Republic"},{"country":"Chad","code":"+235","data-select":"","gdpr":"0","value":"Chad"},{"country":"Chile","code":"+56","data-select":"","gdpr":"0","value":"Chile"},{"country":"China","code":"+86","data-select":"","gdpr":"0","value":"China"},{"country":"Christmas Island","code":"+61","data-select":"","gdpr":"0","value":"Christmas Island"},{"country":"Cocos (Keeling) Islands","code":"+61","data-select":"","gdpr":"0","value":"Cocos (Keeling) Islands"},{"country":"Colombia","code":"+57","data-select":"","gdpr":"0","value":"Colombia"},{"country":"Comoros","code":"+269","data-select":"","gdpr":"0","value":"Comoros"},{"country":"Congo","code":"+242","data-select":"","gdpr":"0","value":"Congo"},{"country":"Cook Islands","code":"+682","data-select":"","gdpr":"0","value":"Cook Islands"},{"country":"Costa Rica","code":"+506","data-select":"","gdpr":"1","value":"Costa Rica"},{"country":"Croatia","code":"+385","data-select":"","gdpr":"1","value":"Croatia"},{"country":"Cuba","code":"+53","data-select":"","gdpr":"0","value":"Cuba"},{"country":"Cura\u00e7ao","code":"+599","data-select":"","gdpr":"0","value":"Cura\u00e7ao"},{"country":"Cyprus","code":"+357","data-select":"","gdpr":"1","value":"Cyprus"},{"country":"Czech Republic","code":"+420","data-select":"","gdpr":"1","value":"Czech Republic"},{"country":"C\u00f4te d\u2019Ivoire","code":"+225","data-select":"","gdpr":"0","value":"C\u00f4te d\u2019Ivoire"},{"country":"Democratic Republic of the Congo","code":"+243","data-select":"","gdpr":"0","value":"Democratic Republic of the Congo"},{"country":"Denmark","code":"+45","data-select":"","gdpr":"1","value":"Denmark"},{"country":"Djibouti","code":"+253","data-select":"","gdpr":"0","value":"Djibouti"},{"country":"Dominica","code":"+1","data-select":"","gdpr":"0","value":"Dominica"},{"country":"Dominican Republic","code":"+1","data-select":"","gdpr":"0","value":"Dominican Republic"},{"country":"Ecuador","code":"+593","data-select":"","gdpr":"0","value":"Ecuador"},{"country":"Egypt","code":"+20","data-select":"","gdpr":"0","value":"Egypt"},{"country":"El Salvador","code":"+503","data-select":"","gdpr":"0","value":"El Salvador"},{"country":"Equatorial Guinea","code":"+240","data-select":"","gdpr":"0","value":"Equatorial Guinea"},{"country":"Eritrea","code":"+291","data-select":"","gdpr":"0","value":"Eritrea"},{"country":"Estonia","code":"+372","data-select":"","gdpr":"1","value":"Estonia"},{"country":"Ethiopia","code":"+250","data-select":"","gdpr":"0","value":"Ethiopia"},{"country":"Falkland Islands","code":"+500","data-select":"","gdpr":"0","value":"Falkland Islands"},{"country":"Faroe Islands","code":"+298","data-select":"","gdpr":"0","value":"Faroe Islands"},{"country":"Fiji","code":"+679","data-select":"","gdpr":"0","value":"Fiji"},{"country":"Finland","code":"+358","data-select":"","gdpr":"1","value":"Finland"},{"country":"France","code":"+33","data-select":"","gdpr":"1","value":"France"},{"country":"French Guiana","code":"+594","data-select":"","gdpr":"1","value":"French Guiana"},{"country":"French Polynesia","code":"+689","data-select":"","gdpr":"0","value":"French Polynesia"},{"country":"French Southern Territories","code":"+33","data-select":"","gdpr":"0","value":"French Southern Territories"},{"country":"Gabon","code":"+241","data-select":"","gdpr":"0","value":"Gabon"},{"country":"Gambia","code":"+220","data-select":"","gdpr":"0","value":"Gambia"},{"country":"Georgia","code":"+995","data-select":"","gdpr":"0","value":"Georgia"},{"country":"Germany","code":"+49","data-select":"","gdpr":"1","value":"Germany"},{"country":"Ghana","code":"+233","data-select":"","gdpr":"0","value":"Ghana"},{"country":"Gibraltar","code":"+350","data-select":"","gdpr":"0","value":"Gibraltar"},{"country":"Greece","code":"+30","data-select":"","gdpr":"1","value":"Greece"},{"country":"Greenland","code":"+299","data-select":"","gdpr":"0","value":"Greenland"},{"country":"Grenada","code":"+1","data-select":"","gdpr":"0","value":"Grenada"},{"country":"Guadeloupe","code":"+590","data-select":"","gdpr":"1","value":"Guadeloupe"},{"country":"Guam","code":"+1","data-select":"","gdpr":"0","value":"Guam"},{"country":"Guatemala","code":"+502","data-select":"","gdpr":"0","value":"Guatemala"},{"country":"Guernsey","code":"+44","data-select":"","gdpr":"0","value":"Guernsey"},{"country":"Guinea","code":"+224","data-select":"","gdpr":"0","value":"Guinea"},{"country":"Guinea-Bissau","code":"+245","data-select":"","gdpr":"0","value":"Guinea-Bissau"},{"country":"Guyana","code":"+592","data-select":"","gdpr":"0","value":"Guyana"},{"country":"Haiti","code":"+509","data-select":"","gdpr":"0","value":"Haiti"},{"country":"Heard Island and McDonald Islands","code":"+61","data-select":"","gdpr":"0","value":"Heard Island and McDonald Islands"},{"country":"Honduras","code":"+504","data-select":"","gdpr":"0","value":"Honduras"},{"country":"Hong Kong S.A.R., China","code":"+852","data-select":"","gdpr":"0","value":"Hong Kong S.A.R., China"},{"country":"Hungary","code":"+36","data-select":"","gdpr":"1","value":"Hungary"},{"country":"Iceland","code":"+354","data-select":"","gdpr":"1","value":"Iceland"},{"country":"Independent State of Samoa","code":"+685","data-select":"","gdpr":"0","value":"Independent State of Samoa"},{"country":"India","code":"+91","data-select":"selected","gdpr":"0","value":"India"},{"country":"Indonesia","code":"+62","data-select":"","gdpr":"0","value":"Indonesia"},{"country":"Iran","code":"+98","data-select":"","gdpr":"0","value":"Iran"},{"country":"Iraq","code":"+964","data-select":"","gdpr":"0","value":"Iraq"},{"country":"Ireland","code":"+353","data-select":"","gdpr":"1","value":"Ireland"},{"country":"Isle of Man","code":"+44","data-select":"","gdpr":"0","value":"Isle of Man"},{"country":"Israel","code":"+972","data-select":"","gdpr":"0","value":"Israel"},{"country":"Italy","code":"+39","data-select":"","gdpr":"1","value":"Italy"},{"country":"Jamaica","code":"+1","data-select":"","gdpr":"0","value":"Jamaica"},{"country":"Japan","code":"+81","data-select":"","gdpr":"0","value":"Japan"},{"country":"Jersey","code":"+44","data-select":"","gdpr":"0","value":"Jersey"},{"country":"Jordan","code":"+962","data-select":"","gdpr":"0","value":"Jordan"},{"country":"Kazakhstan","code":"+7","data-select":"","gdpr":"0","value":"Kazakhstan"},{"country":"Kenya","code":"+254","data-select":"","gdpr":"0","value":"Kenya"},{"country":"Kiribati","code":"+686","data-select":"","gdpr":"0","value":"Kiribati"},{"country":"Kuwait","code":"+965","data-select":"","gdpr":"0","value":"Kuwait"},{"country":"Kyrgyzstan","code":"+996","data-select":"","gdpr":"0","value":"Kyrgyzstan"},{"country":"Laos","code":"+856","data-select":"","gdpr":"0","value":"Laos"},{"country":"Latvia","code":"+371","data-select":"","gdpr":"1","value":"Latvia"},{"country":"Lebanon","code":"+961","data-select":"","gdpr":"0","value":"Lebanon"},{"country":"Lesotho","code":"+266","data-select":"","gdpr":"0","value":"Lesotho"},{"country":"Liberia","code":"+231","data-select":"","gdpr":"0","value":"Liberia"},{"country":"Libya","code":"+218","data-select":"","gdpr":"0","value":"Libya"},{"country":"Liechtenstein","code":"+423","data-select":"","gdpr":"1","value":"Liechtenstein"},{"country":"Lithuania","code":"+370","data-select":"","gdpr":"1","value":"Lithuania"},{"country":"Luxembourg","code":"+352","data-select":"","gdpr":"1","value":"Luxembourg"},{"country":"Macao S.A.R., China","code":"+853","data-select":"","gdpr":"0","value":"Macao S.A.R., China"},{"country":"Macedonia","code":"+389","data-select":"","gdpr":"0","value":"Macedonia"},{"country":"Madagascar","code":"+261","data-select":"","gdpr":"0","value":"Madagascar"},{"country":"Malawi","code":"+265","data-select":"","gdpr":"0","value":"Malawi"},{"country":"Malaysia","code":"+60","data-select":"","gdpr":"0","value":"Malaysia"},{"country":"Maldives","code":"+960","data-select":"","gdpr":"0","value":"Maldives"},{"country":"Mali","code":"+223","data-select":"","gdpr":"0","value":"Mali"},{"country":"Malta","code":"+356","data-select":"","gdpr":"1","value":"Malta"},{"country":"Marshall Islands","code":"+692","data-select":"","gdpr":"0","value":"Marshall Islands"},{"country":"Martinique","code":"+596","data-select":"","gdpr":"1","value":"Martinique"},{"country":"Mauritania","code":"+222","data-select":"","gdpr":"0","value":"Mauritania"},{"country":"Mauritius","code":"+230","data-select":"","gdpr":"0","value":"Mauritius"},{"country":"Mayotte","code":"+262","data-select":"","gdpr":"1","value":"Mayotte"},{"country":"Mexico","code":"+52","data-select":"","gdpr":"0","value":"Mexico"},{"country":"Micronesia, Federated States of","code":"+691","data-select":"","gdpr":"0","value":"Micronesia, Federated States of"},{"country":"Moldova, Republic of","code":"+373","data-select":"","gdpr":"0","value":"Moldova, Republic of"},{"country":"Monaco","code":"+377","data-select":"","gdpr":"0","value":"Monaco"},{"country":"Mongolia","code":"+976","data-select":"","gdpr":"0","value":"Mongolia"},{"country":"Montenegro","code":"+382","data-select":"","gdpr":"0","value":"Montenegro"},{"country":"Montserrat","code":"+1","data-select":"","gdpr":"0","value":"Montserrat"},{"country":"Morocco","code":"+212","data-select":"","gdpr":"0","value":"Morocco"},{"country":"Mozambique","code":"+258","data-select":"","gdpr":"0","value":"Mozambique"},{"country":"Myanmar","code":"+95","data-select":"","gdpr":"0","value":"Myanmar"},{"country":"Namibia","code":"+264","data-select":"","gdpr":"0","value":"Namibia"},{"country":"Nauru","code":"+674","data-select":"","gdpr":"0","value":"Nauru"},{"country":"Nepal","code":"+977","data-select":"","gdpr":"0","value":"Nepal"},{"country":"Netherlands","code":"+31","data-select":"","gdpr":"1","value":"Netherlands"},{"country":"New Caledonia","code":"+687","data-select":"","gdpr":"0","value":"New Caledonia"},{"country":"New Zealand","code":"+64","data-select":"","gdpr":"0","value":"New Zealand"},{"country":"Nicaragua","code":"+505","data-select":"","gdpr":"0","value":"Nicaragua"},{"country":"Niger","code":"+227","data-select":"","gdpr":"0","value":"Niger"},{"country":"Nigeria","code":"+234","data-select":"","gdpr":"0","value":"Nigeria"},{"country":"Niue","code":"+683","data-select":"","gdpr":"0","value":"Niue"},{"country":"Norfolk Island","code":"+672","data-select":"","gdpr":"0","value":"Norfolk Island"},{"country":"North Korea","code":"+850","data-select":"","gdpr":"0","value":"North Korea"},{"country":"Northern Mariana Islands","code":"+1","data-select":"","gdpr":"0","value":"Northern Mariana Islands"},{"country":"Norway","code":"+47","data-select":"","gdpr":"1","value":"Norway"},{"country":"Oman","code":"+968","data-select":"","gdpr":"0","value":"Oman"},{"country":"Pakistan","code":"+92","data-select":"","gdpr":"0","value":"Pakistan"},{"country":"Palau","code":"+680","data-select":"","gdpr":"0","value":"Palau"},{"country":"Palestinian Territory","code":"+970","data-select":"","gdpr":"0","value":"Palestinian Territory"},{"country":"Panama","code":"+507","data-select":"","gdpr":"0","value":"Panama"},{"country":"Papua New Guinea","code":"+675","data-select":"","gdpr":"0","value":"Papua New Guinea"},{"country":"Paraguay","code":"+595","data-select":"","gdpr":"0","value":"Paraguay"},{"country":"Peru","code":"+51","data-select":"","gdpr":"0","value":"Peru"},{"country":"Philippines","code":"+63","data-select":"","gdpr":"0","value":"Philippines"},{"country":"Pitcairn Islands","code":"+64","data-select":"","gdpr":"0","value":"Pitcairn Islands"},{"country":"Poland","code":"+48","data-select":"","gdpr":"1","value":"Poland"},{"country":"Portugal","code":"+351","data-select":"","gdpr":"1","value":"Portugal"},{"country":"Puerto Rico","code":"+1","data-select":"","gdpr":"0","value":"Puerto Rico"},{"country":"Qatar","code":"+974","data-select":"","gdpr":"0","value":"Qatar"},{"country":"Romania","code":"+40","data-select":"","gdpr":"1","value":"Romania"},{"country":"Russia","code":"+7","data-select":"","gdpr":"0","value":"Russia"},{"country":"Rwanda","code":"+250","data-select":"","gdpr":"0","value":"Rwanda"},{"country":"R\u00e9union","code":"+262","data-select":"","gdpr":"1","value":"R\u00e9union"},{"country":"Saint Helena, Ascension and Tristan da Cunha","code":"+290","data-select":"","gdpr":"0","value":"Saint Helena, Ascension and Tristan da Cunha"},{"country":"Saint Kitts and Nevis","code":"+1","data-select":"","gdpr":"0","value":"Saint Kitts and Nevis"},{"country":"Saint Lucia","code":"+1","data-select":"","gdpr":"0","value":"Saint Lucia"},{"country":"Saint Martin (French part)","code":"+590","data-select":"","gdpr":"1","value":"Saint Martin (French part)"},{"country":"Saint Vincent and the Grenadines","code":"+1","data-select":"","gdpr":"0","value":"Saint Vincent and the Grenadines"},{"country":"San Marino","code":"+378","data-select":"","gdpr":"0","value":"San Marino"},{"country":"Sao Tome and Principe","code":"+239","data-select":"","gdpr":"0","value":"Sao Tome and Principe"},{"country":"Saudi Arabia","code":"+966","data-select":"","gdpr":"0","value":"Saudi Arabia"},{"country":"Senegal","code":"+221","data-select":"","gdpr":"0","value":"Senegal"},{"country":"Serbia","code":"+381","data-select":"","gdpr":"0","value":"Serbia"},{"country":"Seychelles","code":"+248","data-select":"","gdpr":"0","value":"Seychelles"},{"country":"Sierra Leone","code":"+232","data-select":"","gdpr":"0","value":"Sierra Leone"},{"country":"Singapore","code":"+65","data-select":"","gdpr":"0","value":"Singapore"},{"country":"Sint Maarten (Dutch part)","code":"+1","data-select":"","gdpr":"1","value":"Sint Maarten (Dutch part)"},{"country":"Slovakia","code":"+421","data-select":"","gdpr":"1","value":"Slovakia"},{"country":"Slovenia","code":"+386","data-select":"","gdpr":"1","value":"Slovenia"},{"country":"Solomon Islands","code":"+677","data-select":"","gdpr":"0","value":"Solomon Islands"},{"country":"Somalia","code":"+252","data-select":"","gdpr":"0","value":"Somalia"},{"country":"South Africa","code":"+27","data-select":"","gdpr":"0","value":"South Africa"},{"country":"South Georgia & South Sandwich Islands","code":"+500","data-select":"","gdpr":"0","value":"South Georgia & South Sandwich Islands"},{"country":"South Korea","code":"+82","data-select":"","gdpr":"0","value":"South Korea"},{"country":"South Sudan","code":"+211","data-select":"","gdpr":"0","value":"South Sudan"},{"country":"Spain","code":"+34","data-select":"","gdpr":"1","value":"Spain"},{"country":"Sri Lanka","code":"+94","data-select":"","gdpr":"0","value":"Sri Lanka"},{"country":"St. Barth\u00e9lemy","code":"+590","data-select":"","gdpr":"0","value":"St. Barth\u00e9lemy"},{"country":"St. Pierre & Miquelon","code":"+508","data-select":"","gdpr":"0","value":"St. Pierre & Miquelon"},{"country":"Sudan","code":"+249","data-select":"","gdpr":"0","value":"Sudan"},{"country":"Suriname","code":"+597","data-select":"","gdpr":"0","value":"Suriname"},{"country":"Svalbard and Jan Mayen","code":"+47","data-select":"","gdpr":"0","value":"Svalbard and Jan Mayen"},{"country":"Swaziland","code":"+268","data-select":"","gdpr":"0","value":"Swaziland"},{"country":"Sweden","code":"+46","data-select":"","gdpr":"1","value":"Sweden"},{"country":"Switzerland","code":"+41","data-select":"","gdpr":"0","value":"Switzerland"},{"country":"Syria","code":"+963","data-select":"","gdpr":"0","value":"Syria"},{"country":"Taiwan","code":"+886","data-select":"","gdpr":"0","value":"Taiwan"},{"country":"Tajikistan","code":"+992","data-select":"","gdpr":"0","value":"Tajikistan"},{"country":"Tanzania","code":"+255","data-select":"","gdpr":"0","value":"Tanzania"},{"country":"Thailand","code":"+66","data-select":"","gdpr":"0","value":"Thailand"},{"country":"Timor-Leste","code":"+670","data-select":"","gdpr":"0","value":"Timor-Leste"},{"country":"Togo","code":"+228","data-select":"","gdpr":"0","value":"Togo"},{"country":"Tokelau","code":"+690","data-select":"","gdpr":"0","value":"Tokelau"},{"country":"Tonga","code":"+676","data-select":"","gdpr":"0","value":"Tonga"},{"country":"Trinidad and Tobago","code":"+1","data-select":"","gdpr":"0","value":"Trinidad and Tobago"},{"country":"Tunisia","code":"+216","data-select":"","gdpr":"0","value":"Tunisia"},{"country":"Turkey","code":"+90","data-select":"","gdpr":"0","value":"Turkey"},{"country":"Turkmenistan","code":"+993","data-select":"","gdpr":"0","value":"Turkmenistan"},{"country":"Turks and Caicos Islands","code":"+1","data-select":"","gdpr":"0","value":"Turks and Caicos Islands"},{"country":"Tuvalu","code":"+688","data-select":"","gdpr":"0","value":"Tuvalu"},{"country":"U.S. Outlying Islands","code":"+1","data-select":"","gdpr":"0","value":"U.S. Outlying Islands"},{"country":"Uganda","code":"+256","data-select":"","gdpr":"0","value":"Uganda"},{"country":"Ukraine","code":"+380","data-select":"","gdpr":"0","value":"Ukraine"},{"country":"United Arab Emirates","code":"+971","data-select":"","gdpr":"0","value":"United Arab Emirates"},{"country":"United Kingdom","code":"+44","data-select":"","gdpr":"1","value":"United Kingdom"},{"country":"United States","code":"+1","data-select":"","gdpr":"0","value":"United States"},{"country":"Uruguay","code":"+598","data-select":"","gdpr":"0","value":"Uruguay"},{"country":"Uzbekistan","code":"+998","data-select":"","gdpr":"0","value":"Uzbekistan"},{"country":"Vanuatu","code":"+678","data-select":"","gdpr":"0","value":"Vanuatu"},{"country":"Vatican City","code":"+39","data-select":"","gdpr":"0","value":"Vatican City"},{"country":"Venezuela","code":"+58","data-select":"","gdpr":"0","value":"Venezuela"},{"country":"Vietnam","code":"+84","data-select":"","gdpr":"0","value":"Vietnam"},{"country":"Virgin Islands, British","code":"+1","data-select":"","gdpr":"0","value":"Virgin Islands, British"},{"country":"Virgin Islands, U.S.","code":"+1","data-select":"","gdpr":"0","value":"Virgin Islands, U.S."},{"country":"Wallis & Futuna","code":"+681","data-select":"","gdpr":"0","value":"Wallis & Futuna"},{"country":"Western Sahara","code":"+212","data-select":"","gdpr":"0","value":"Western Sahara"},{"country":"Yemen","code":"+967","data-select":"","gdpr":"0","value":"Yemen"},{"country":"Zambia","code":"+260","data-select":"","gdpr":"0","value":"Zambia"},{"country":"Zimbabwe","code":"+263","data-select":"","gdpr":"0","value":"Zimbabwe"}];function populateInitialOption() { var jQuerySelectElement = jQuery('#country'); jQuerySelectElement.empty(); var initialOptionAdded = false; jQuery.each(countryList, function(index, country) { if (country['data-select'] === "selected") { var jQueryOption = jQuery('
') .val(country.country) .attr('data-codes', country.code) .attr('data-gdprs', country.gdpr) .text(country.value) .prop('selected', true); jQuerySelectElement.append(jQueryOption); initialOptionAdded = true; return false; // Break the loop after adding the initial option } }); if (!initialOptionAdded) { var jQueryDefaultOption = jQuery('
') .val('') .prop('disabled', true) .prop('selected', true) .text('Country/Region'); jQuerySelectElement.append(jQueryDefaultOption); }}function populateAllOptions() { var jQuerySelectElement = jQuery('#country'); var jQueryInitialOption = jQuerySelectElement.find('option:selected'); jQuerySelectElement.empty(); jQuerySelectElement.append(jQueryInitialOption); jQuery.each(countryList, function(index, country) { if (country['data-select'] !== "selected") { var jQueryOption = jQuery('
') .val(country.country) .attr('data-codes', country.code) .attr('data-gdprs', country.gdpr) .text(country.value); jQuerySelectElement.append(jQueryOption); } });}jQuery(document).ready(function() { populateInitialOption();});jQuery('#country').one('focus', function() { populateAllOptions();}); //custom validation rule jQuery.validator.addMethod("customemail", function(value, element) { if (jQuery.trim(value) != "") { var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i); return pattern.test(value); } else { return true; } }, "Please provide valid email format" ); jQuery.validator.addMethod("specialChar", function(value, element) { return this.optional(element) || /([0-9a-zA-Z\s])$/.test(value); }, "Please Fill Correct Value in Field."); jQuery.validator.addMethod("notEqual", function(value, element, param) { return this.optional(element) || value != param; }, "Please select valid country"); jQuery('#country').change(function() { let contryCode = ""; let gdprValue = 0; jQuery("#country option:selected").each(function() { contryCode += jQuery(this).data("codes"); gdprValue += jQuery(this).data("gdprs"); jQuery('input#country_code_leadsurvey').attr("placeholder", contryCode); jQuery('input#country_code_leadsurvey').attr("value", contryCode); }); jQuery("#country_code_leadsurvey").val(contryCode); if (gdprValue === 1) { jQuery("#explicitOptIn_leadsurvey").css("display", "flex"); jQuery("#implicitOptIn_leadsurvey").css("display", "none"); } else { jQuery("#explicitOptIn_leadsurvey").css("display", "none"); jQuery("#implicitOptIn_leadsurvey").css("display", "block"); } }); });