const expertData = [{ "userId": "6225c31733aaa769e84d35e6", "email": "[email protected]", "mobileNumber": "7011123100", "userType": "student-advisor", "username": "abhay_verma3100", "firstName": "Abhay Verma", "userRoleSlug": "student-advisor" }, { "userId": "655b43b062468214ec395526", "email": "[email protected]", "mobileNumber": "7292096689", "userType": "student-advisor", "username": "Abhishek_Singh_Baghel@veojs", "firstName": "Abhishek Singh Baghel", "userRoleSlug": "student-advisor" }, { "userId": "637318374192c4086a753b7d", "email": "[email protected]", "mobileNumber": "7983245965", "userType": "student-advisor", "username": "abhishek_dubey5965", "firstName": "Abhishek Dubey", "userRoleSlug": "student-advisor" }, { "userId": "63e4db93f157ed71cfb82fa5", "email": "[email protected]", "mobileNumber": "6202232603", "userType": "student-advisor", "username": "abhishek_mehta2603", "firstName": "Abhishek Mehta", "userRoleSlug": "student-advisor" }, { "userId": "622f1bbb1d1eb8273da3bff2", "email": "[email protected]", "mobileNumber": "8920585942", "userType": "student-advisor", "username": "achyut_jaiswal5942", "firstName": "Achyut Jaiswal", "userRoleSlug": "student-advisor" }, { "userId": "63e358ce70ff3438222a30d0", "email": "[email protected]", "mobileNumber": "8577933233", "userType": "student-advisor", "username": "adarsh_rao3233", "firstName": "Adarsh Rao", "userRoleSlug": "student-advisor" }, { "userId": "6253e77957dbba61308ff17f", "email": "[email protected]", "mobileNumber": "9639732098", "userType": "student-advisor", "username": "aditi__vishnoi2098", "firstName": "Aditi Vishnoi", "userRoleSlug": "student-advisor" }, { "userId": "655b435f62468214ec395285", "email": "[email protected]", "mobileNumber": "8171529192", "userType": "student-advisor", "username": "Ajay_Godara@m3cpl", "firstName": "Ajay Godara", "userRoleSlug": "student-advisor" }, { "userId": "6136f9e66bc4484f4789d28d", "email": "[email protected]", "mobileNumber": "84658645647", "userType": "student-advisor", "username": "akansha_bhadula5647", "firstName": "akansha bhadula", "userRoleSlug": "premium-service-expert" }, { "userId": "63d0dc5c148d231606fb4443", "email": "[email protected]", "mobileNumber": "7004418941", "userType": "student-advisor", "username": "akash_kumar_jha8941", "firstName": "Akash Kumar Jha", "userRoleSlug": "student-advisor" }, { "userId": "62c03e502edf9349f1d3e0cf", "email": "[email protected]", "mobileNumber": "9643689582", "userType": "student-advisor", "username": "akash_sharma9582", "firstName": "Akash Sharma", "userRoleSlug": "student-advisor" }, { "userId": "655b475062468214ec396b25", "email": "[email protected]", "mobileNumber": "8929567117", "userType": "student-advisor", "username": "Akash_Singh@j8vby", "firstName": "Akash Singh", "userRoleSlug": "student-advisor" }, { "userId": "6580fbdf34ff95d55b51636c", "email": "[email protected]", "mobileNumber": "9910327954", "userType": "student-advisor", "username": "Aman_kumar@2rr46", "firstName": "Aman Kumar", "userRoleSlug": "student-advisor" }, { "userId": "629834e5e3738d2a4d1164aa", "email": "[email protected]", "mobileNumber": "9773923952", "userType": "student-advisor", "username": "aman_saxena3952", "firstName": "Aman Saxena", "userRoleSlug": "data-expert" }, { "userId": "65781fcdc073c9b35771179f", "email": "[email protected]", "mobileNumber": "9971422849", "userType": "student-advisor", "username": "Amit_Tiwari@rcoxy", "firstName": "Amit Tiwari", "userRoleSlug": "cluster-head" }, { "userId": "63a067c676cf110d9f9c58ef", "email": "[email protected]", "mobileNumber": "9576797916", "userType": "student-advisor", "username": "amitesh_kumar7916", "firstName": "Amitesh Kumar", "userRoleSlug": "student-advisor" }, { "userId": "659b9f96eb949cea8d201782", "email": "[email protected]", "mobileNumber": "8791592998", "userType": "student-advisor", "username": "Ankur_Saxena@b4m7a", "firstName": "Ankur Saxena", "userRoleSlug": "student-advisor" }, { "userId": "622f1c675cbd653f9d5d3cab", "email": "[email protected]", "mobileNumber": "6387392826", "userType": "student-advisor", "username": "ansh_jaiswal2826", "firstName": "Ansh Jaiswal", "userRoleSlug": "student-advisor" }, { "userId": "62683be3d9f34e078651d41a", "email": "[email protected]", "mobileNumber": "9654330572", "userType": "student-advisor", "username": "anushka_arora0572", "firstName": "Anushka Arora", "userRoleSlug": "data-expert" }, { "userId": "6580fc2b34ff95d55b5164b5", "email": "[email protected]", "mobileNumber": "7838877978", "userType": "student-advisor", "username": "Archana_Gautam@fjfz9", "firstName": "Archana Gautam", "userRoleSlug": "student-advisor" }, { "userId": "6580fb8934ff95d55b516210", "email": "[email protected]", "mobileNumber": "7452027084", "userType": "student-advisor", "username": "Arpit_Pal_Singh@gpu3m", "firstName": "Arpit Pal Singh", "userRoleSlug": "student-advisor" }, { "userId": "652d41fe6d5c3f60c626ab67", "email": "[email protected]", "mobileNumber": "8882190218", "userType": "student-advisor", "username": "Arpit_Rastogi@czwlz", "firstName": "Arpit Rastogi", "userRoleSlug": "student-advisor" }, { "userId": "637318974192c4086a753b90", "email": "[email protected]", "mobileNumber": "7906924632", "userType": "student-advisor", "username": "arushi_verma4632", "firstName": "Arushi Verma", "userRoleSlug": "student-advisor" }, { "userId": "64003d5deba48b50a15f6d36", "email": "[email protected]", "mobileNumber": "8800170998", "userType": "student-advisor", "username": "ashank_shishodia0998", "firstName": "Ashank Shishodia", "userRoleSlug": "student-advisor" }, { "userId": "606eaf0db8e6ad5d77bb3f33", "email": "[email protected]", "mobileNumber": "9471499580", "userType": "student-advisor", "username": "ashish_pandey9580", "firstName": "Ashish Pandey", "userRoleSlug": "destination-expert" }, { "userId": "654368c5636256084ef22d7b", "email": "[email protected]", "mobileNumber": "7056494198", "userType": "student-advisor", "username": "Avinash@wtotw", "firstName": "Avinash", "userRoleSlug": "loan-expert" }, { "userId": "65ae2a2d84d1165552530c70", "email": "[email protected]", "mobileNumber": "7017109514", "userType": "student-advisor", "username": "Bravim_Bahuguna@adefw", "firstName": "Bravim Bahuguna", "userRoleSlug": "student-advisor" }, { "userId": "5f7221c5fbb4ff4e473014b3", "email": "[email protected]", "mobileNumber": "820242111", "userType": "student-advisor", "username": "charul861", "firstName": "Charul", "userRoleSlug": "cluster-head" }, { "userId": "629846587480e96f64ed3b88", "email": "[email protected]", "mobileNumber": "7995379102", "userType": "student-advisor", "username": "chukka_nalini9102", "firstName": "Chukka Nalini", "userRoleSlug": "student-advisor" }, { "userId": "64003b00497627291d15c397", "email": "[email protected]", "mobileNumber": "8960018135", "userType": "student-advisor", "username": "deepali_gupta8135", "firstName": "Deepali Gupta", "userRoleSlug": "student-advisor" }, { "userId": "652d44336d5c3f60c626b796", "email": "[email protected]", "mobileNumber": "9811596710", "userType": "student-advisor", "username": "Gaurav_Chauhan@kiuaj", "firstName": "Gaurav Chauhan", "userRoleSlug": "student-advisor" }, { "userId": "654b6ecc636256084e03a1d5", "email": "[email protected]", "mobileNumber": "8178189910", "userType": "student-advisor", "username": "Gaurav_Suryavanshi@s39mf", "firstName": "Gaurav Suryavanshi", "userRoleSlug": "student-advisor" }, { "userId": "5ef5ee2677e84b085ea2f9cf", "email": "[email protected]", "mobileNumber": "8178207460", "userType": "student-advisor", "username": "geetika9482", "firstName": "Geetika", "userRoleSlug": "cluster-head" }, { "userId": "6418352968d8a20704b70b95", "email": "[email protected]", "mobileNumber": "9899675800", "userType": "student-advisor", "username": "gourish_makhija5800", "firstName": "Gourish Makhija", "userRoleSlug": "student-advisor" }, { "userId": "64ad4ad68fbc023e71db4980", "email": "[email protected]", "mobileNumber": "9896092582", "userType": "student-advisor", "username": "Hardik_Aggarwal@348lv", "firstName": "Hardik Aggarwal", "userRoleSlug": "business-head" }, { "userId": "655b66a862468214ec3a48d4", "email": "[email protected]", "mobileNumber": "9140486165", "userType": "student-advisor", "username": "Hardik_Dwivedi@tqgc4", "firstName": "Hardik Dwivedi", "userRoleSlug": "student-advisor" }, { "userId": "611ca34fa66f90729b145f4d", "email": "[email protected]", "mobileNumber": "9812273739", "userType": "student-advisor", "username": "harsh_chopra2901", "firstName": "harsh chopra", "userRoleSlug": "student-advisor" }, { "userId": "64d0e9b7f09f561af82be880", "email": "[email protected]", "mobileNumber": "7042480969", "userType": "student-advisor", "username": "Harshit_Bharti@jqxjn", "firstName": "Harshit Bharti", "userRoleSlug": "student-advisor" }, { "userId": "648833dc317c4e2c7d9e6251", "email": "[email protected]", "mobileNumber": "6395403591", "userType": "student-advisor", "username": "hitesh_sunal3591", "firstName": "Hitesh Sunal", "userRoleSlug": "loan-expert" }, { "userId": "63f742bb5178827de960ccb6", "email": "[email protected]", "mobileNumber": "7006548150", "userType": "student-advisor", "username": "huma_shafeeq8150", "firstName": "Huma Shafeeq", "userRoleSlug": "student-advisor" }, { "userId": "5c306b529c9e7d6c1d9e7ee2", "email": "[email protected]", "mobileNumber": "2121100000", "userType": "student-advisor", "username": "isha8986", "firstName": "Isha Vashist", "userRoleSlug": "cluster-head" }, { "userId": "64003ab3497627291d15c1bf", "email": "[email protected]", "mobileNumber": "9650686237", "userType": "student-advisor", "username": "ishita_kansal6237", "firstName": "Ishita Kansal", "userRoleSlug": "student-advisor" }, { "userId": "62c03c25e6446d41bd264a89", "email": "[email protected]", "mobileNumber": "8006431198", "userType": "student-advisor", "username": "joel_nelson1198", "firstName": "Joel Nelson", "userRoleSlug": "student-advisor" }, { "userId": "6253d67957dbba61308fb40e", "email": "[email protected]", "mobileNumber": "9810498329", "userType": "student-advisor", "username": "karan_arora4968", "firstName": "Karan Arora", "userRoleSlug": "data-expert" }, { "userId": "6116146ba66f90729b12c711", "email": "[email protected]", "mobileNumber": "5848588688", "userType": "student-advisor", "username": "kashish_shah8688", "firstName": "Kashish Shah", "userRoleSlug": "data-expert" }, { "userId": "63d0dda8515bce3b5d4381d8", "email": "[email protected]", "mobileNumber": "7817987797", "userType": "student-advisor", "username": "keshav_narayan_bhola0540", "firstName": "Keshav Narayan Bhola", "userRoleSlug": "student-advisor" }, { "userId": "611ca2bfa66f90729b145ec5", "email": "[email protected]", "mobileNumber": "9287462713", "userType": "student-advisor", "username": "khyaati_jain2713", "firstName": "khyaati jain", "userRoleSlug": "destination-expert" }, { "userId": "629846e9e3738d2a4d1173f9", "email": "[email protected]", "mobileNumber": "7291945629", "userType": "student-advisor", "username": "kumari_priyanjali5629", "firstName": "Kumari Priyanjali", "userRoleSlug": "student-advisor" }, { "userId": "6418368768d8a20704b70bb2", "email": "[email protected]", "mobileNumber": "9410022628", "userType": "student-advisor", "username": "kushagra_tayal2628", "firstName": "Kushagra Tayal", "userRoleSlug": "student-advisor" }, { "userId": "63e35890e1b974760b0356ea", "email": "[email protected]", "mobileNumber": "8580510679", "userType": "student-advisor", "username": "lakshit_shyam0679", "firstName": "Lakshit Shyam", "userRoleSlug": "student-advisor" }, { "userId": "6200b3302446860936483cbe", "email": "[email protected]", "mobileNumber": "8988077502", "userType": "student-advisor", "username": "mahak_sharma7502", "firstName": "Mahak Sharma", "userRoleSlug": "student-advisor" }, { "userId": "63a032e476cf110d9f9bb2aa", "email": "[email protected]", "mobileNumber": "9711064532", "userType": "student-advisor", "username": "manas_nair4533", "firstName": "Manas Nair", "userRoleSlug": "student-advisor" }, { "userId": "64b6347a61f48d66eafb205f", "email": "[email protected]", "mobileNumber": "9999290067", "userType": "student-advisor", "username": "Mayank_Sharma@m8yht", "firstName": "Mayank Sharma", "userRoleSlug": "premium-service-manager" }, { "userId": "61d2c386ca8d7d7bdac9f52e", "email": "[email protected]", "mobileNumber": "9643228948", "userType": "student-advisor", "username": "meenu_dhama8948", "firstName": "Meenu Dhama", "userRoleSlug": "student-advisor" }, { "userId": "60a3b5a7a07c371922f87508", "email": "[email protected]", "mobileNumber": "6565654433", "userType": "student-advisor", "username": "mukul_janbandhu4433", "firstName": "Mukul", "userRoleSlug": "data-manager" }, { "userId": "63e35966e1b974760b03571b", "email": "[email protected]", "mobileNumber": "7014614876", "userType": "student-advisor", "username": "nandini_gupta4876", "firstName": "Nandini Gupta", "userRoleSlug": "student-advisor" }, { "userId": "61f90a8481e30d67ecf3d4fc", "email": "[email protected]", "mobileNumber": "8209747375", "userType": "student-advisor", "username": "nandini_mundhra7375", "firstName": "Nandini Mundhra", "userRoleSlug": "student-advisor" }, { "userId": "63f472ab5178827de95d8596", "email": "[email protected]", "mobileNumber": "8003120780", "userType": "student-advisor", "username": "nidhi_chandnani0780", "firstName": "Nidhi Chandnani", "userRoleSlug": "student-advisor" }, { "userId": "64d0e979f09f561af82be5b2", "email": "[email protected]", "mobileNumber": "9639839892", "userType": "student-advisor", "username": "Nishant_Sharma@832b0", "firstName": "Nishant Sharma", "userRoleSlug": "student-advisor" }, { "userId": "64ad7c0e8fbc023e71db9383", "email": "[email protected]", "mobileNumber": "8800544723", "userType": "student-advisor", "username": "Nupur_Kaplash@i1k0t", "firstName": "Nupur Kaplash", "userRoleSlug": "student-advisor" }, { "userId": "606eb196b8e6ad5d77bb421d", "email": "[email protected]", "mobileNumber": "7838680076", "userType": "student-advisor", "username": "ojaswani_sharma0076", "firstName": "Ojaswani Sharma", "userRoleSlug": "premium-service-expert" }, { "userId": "63f47326f292df31f0a40f4c", "email": "[email protected]", "mobileNumber": "9520579972", "userType": "student-advisor", "username": "omendra_pratap_singh9972", "firstName": "Omendra Pratap Singh\t", "userRoleSlug": "student-advisor" }, { "userId": "5efb806c7d3f5c512f386462", "email": "[email protected]", "mobileNumber": "7005582083", "userType": "student-advisor", "username": "parag5259", "firstName": "Parag Kar", "userRoleSlug": "mentorship-manager" }, { "userId": "5ebfac503406c1042fb3753c", "email": "[email protected]", "mobileNumber": "9713294577", "userType": "student-advisor", "username": "systemuser", "firstName": "Ted", "userRoleSlug": "super-admin" }, { "userId": "64b6593761f48d66eafc0894", "email": "[email protected]", "mobileNumber": "9953273726", "userType": "student-advisor", "username": "Pooja_Kumari@3qhaf", "firstName": "Pooja Kumari", "userRoleSlug": "student-advisor" }, { "userId": "63f471a65178827de95d835a", "email": "[email protected]", "mobileNumber": "8585959854", "userType": "student-advisor", "username": "prashant_singh_chauhan9854", "firstName": "Prashant Singh Chauhan\t", "userRoleSlug": "student-advisor" }, { "userId": "63f73eacf292df31f0a7570a", "email": "[email protected]", "mobileNumber": "9958914393", "userType": "student-advisor", "username": "prashant_kumar5384", "firstName": "Prashant Kumar\t", "userRoleSlug": "student-advisor" }, { "userId": "64635ed0317c4e2c7d9df77f", "email": "[email protected]", "mobileNumber": "7620027120", "userType": "student-advisor", "username": "prince_kumar7120", "firstName": "Prince Kumar", "userRoleSlug": "offline-partner-expert" }, { "userId": "62c2b6f69f967e2945ba8915", "email": "[email protected]", "mobileNumber": "7037862863", "userType": "student-advisor", "username": "priya_sharma2863", "firstName": "Priya Sharma", "userRoleSlug": "student-advisor" }, { "userId": "622f1c3a5cbd653f9d5d3c77", "email": "[email protected]", "mobileNumber": "8887696192", "userType": "student-advisor", "username": "priyam_tandon6192", "firstName": "Priyam Tandon", "userRoleSlug": "student-advisor" }, { "userId": "5e5d0b089d312303354d8976", "email": "[email protected]", "mobileNumber": "2121100044", "userType": "student-advisor", "username": "priyanka_9111", "firstName": "Priyanka Bhargava", "userRoleSlug": "premium-service-manager" }, { "userId": "654b6e7b636256084e039f79", "email": "[email protected]", "mobileNumber": "9599404406", "userType": "student-advisor", "username": "Priyesh_Ghosh@n4h2c", "firstName": "Priyesh Ghosh", "userRoleSlug": "student-advisor" }, { "userId": "63f473855178827de95d8671", "email": "[email protected]", "mobileNumber": "8707879899", "userType": "student-advisor", "username": "rachit_tandon9899", "firstName": "Rachit Tandon", "userRoleSlug": "student-advisor" }, { "userId": "652d43806d5c3f60c626b3c3", "email": "[email protected]", "mobileNumber": "7678202322", "userType": "student-advisor", "username": "Raghav_Ahuja@kise8", "firstName": "Raghav Ahuja", "userRoleSlug": "student-advisor" }, { "userId": "64635f0c317c4e2c7d9df781", "email": "[email protected]", "mobileNumber": "9310347003", "userType": "student-advisor", "username": "rahul_tiwari7003", "firstName": "Rahul Tiwari", "userRoleSlug": "offline-partner-expert" }, { "userId": "654b6f0f636256084e03a47c", "email": "[email protected]", "mobileNumber": "9625265717", "userType": "student-advisor", "username": "Rahul_Singh_Verma@4z68z", "firstName": "Rahul Singh Verma", "userRoleSlug": "student-advisor" }, { "userId": "655b6ac662468214ec3a5324", "email": "[email protected]", "mobileNumber": "8851766894", "userType": "student-advisor", "username": "Rakhi@feeax", "firstName": "Rakhi", "userRoleSlug": "student-advisor" }, { "userId": "60e517bbe8bbc02a1c46cae1", "email": "[email protected]", "mobileNumber": "7777555522", "userType": "student-advisor", "username": "rishabh_kashyap5522", "firstName": "Rishabh Kashyap", "userRoleSlug": "offline-partner-expert" }, { "userId": "6242c1cc8fbd8d6a1b5b82bf", "email": "[email protected]", "mobileNumber": "8755643700", "userType": "student-advisor", "username": "riya_agarwal3700", "firstName": "Riya Agarwal", "userRoleSlug": "remittance-team-lead" }, { "userId": "64907ad63b0ae13370bf6821", "email": "[email protected]", "mobileNumber": "9643250109", "userType": "student-advisor", "username": "riya_vohra0109", "firstName": "Riya Vohra", "userRoleSlug": "premium-service-expert" }, { "userId": "65a4e30c92cc400eea7c389c", "email": "[email protected]", "mobileNumber": "9560110705", "userType": "student-advisor", "username": "Rohan_Chadha@8xzu7", "firstName": "Rohan Chadha", "userRoleSlug": "student-advisor" }, { "userId": "63d0dbb3515bce3b5d437aee", "email": "[email protected]", "mobileNumber": "9536633356", "userType": "student-advisor", "username": "sachin_mehra3356", "firstName": "Sachin Mehra", "userRoleSlug": "student-advisor" }, { "userId": "62c0319df53ad7596441749c", "email": "[email protected]", "mobileNumber": "8958017441", "userType": "student-advisor", "username": "sagar_bhatt7441", "firstName": "Sagar Bhatt", "userRoleSlug": "student-advisor" }, { "userId": "6225bcd88ae8e0059a775dd9", "email": "[email protected]", "mobileNumber": "8527540595", "userType": "student-advisor", "username": "sahil_sandhu0595", "firstName": "Sahil Sandhu", "userRoleSlug": "student-advisor" }, { "userId": "655b6b7e62468214ec3a56a6", "email": "[email protected]", "mobileNumber": "9971586172", "userType": "student-advisor", "username": "Saksham_Selly@nlmtm", "firstName": "Saksham Selly", "userRoleSlug": "student-advisor" }, { "userId": "62c03d8d4d3de9465de83865", "email": "[email protected]", "mobileNumber": "8377890202", "userType": "student-advisor", "username": "sanjana_bhatia0202", "firstName": "Sanjana", "userRoleSlug": "student-advisor" }, { "userId": "655b6eed62468214ec3a6490", "email": "[email protected]", "mobileNumber": "8259937698", "userType": "student-advisor", "username": "Saurav_Deb@103m7", "firstName": "Saurav Deb", "userRoleSlug": "student-advisor" }, { "userId": "6400390f497627291d15bb91", "email": "[email protected]", "mobileNumber": "8810599176", "userType": "student-advisor", "username": "shivam_bhardwaj9176", "firstName": "Shivam Bhardwaj", "userRoleSlug": "student-advisor" }, { "userId": "641836d3f9fb9a46f92f70d2", "email": "[email protected]", "mobileNumber": "9870749199", "userType": "student-advisor", "username": "shivam_kumar9199", "firstName": "Shivam Kumar", "userRoleSlug": "student-advisor" }, { "userId": "61920cfad543a11ed85129fc", "email": "[email protected]", "mobileNumber": "8433143215", "userType": "student-advisor", "username": "shivam_nohwar3215", "firstName": "SHIVAM NOHWAR", "userRoleSlug": "premium-service-expert" }, { "userId": "63f47684f292df31f0a4155a", "email": "[email protected]", "mobileNumber": "9084215633", "userType": "student-advisor", "username": "shorya_gupta5633", "firstName": "Shorya Gupta", "userRoleSlug": "student-advisor" }, { "userId": "65a4e25c92cc400eea7c2cc6", "email": "[email protected]", "mobileNumber": "9310409011", "userType": "student-advisor", "username": "Shovik_Julka@8h7lu", "firstName": "Shovik Julka", "userRoleSlug": "student-advisor" }, { "userId": "63f471d85178827de95d83b3", "email": "[email protected]", "mobileNumber": "8825215209", "userType": "student-advisor", "username": "shreya_saluja5209", "firstName": "Shreya Saluja", "userRoleSlug": "student-advisor" }, { "userId": "609f579f9161ec053f9d2857", "email": "[email protected]", "mobileNumber": "7676677111", "userType": "student-advisor", "username": "shubham_srivastava7111", "firstName": "Shubham Srivastava", "userRoleSlug": "student-advisor" }, { "userId": "63e3573670ff3438222a3037", "email": "[email protected]", "mobileNumber": "6397681602", "userType": "student-advisor", "username": "shubhangi_rastogi1602", "firstName": "Shubhangi Rastogi", "userRoleSlug": "student-advisor" }, { "userId": "6193cbe967851f7aa43a87a6", "email": "[email protected]", "mobileNumber": "7073360342", "userType": "student-advisor", "username": "sonu_soni8347", "firstName": "sonu soni", "userRoleSlug": "student-advisor" }, { "userId": "60cc2f0cb762ff620a7738ff", "email": "[email protected]", "mobileNumber": "7575444422", "userType": "student-advisor", "username": "soumya_lalotra4422", "firstName": "soumya lalotra", "userRoleSlug": "visa-manager" }, { "userId": "641836abf9fb9a46f92f70d1", "email": "[email protected]", "mobileNumber": "8770598166", "userType": "student-advisor", "username": "supriyanka_upadhyay8166", "firstName": "Supriyanka Upadhyay", "userRoleSlug": "student-advisor" }, { "userId": "659540e6eb949cea8d0960f0", "email": "[email protected]", "mobileNumber": "9810645826", "userType": "student-advisor", "username": "Swadha_Shruti_Dixit@251vt", "firstName": "Swadha Shruti Dixit", "userRoleSlug": "student-advisor" }, { "userId": "6571a4bac073c9b3576161e2", "email": "[email protected]", "mobileNumber": "8299360801", "userType": "student-advisor", "username": "Swastik_Dixit@tgcxs", "firstName": "Swastik Dixit", "userRoleSlug": "student-advisor" }, { "userId": "610921a2d2c688741693e4ba", "email": "[email protected]", "mobileNumber": "4463664757", "userType": "student-advisor", "username": "tanvi_dhanwani4757", "firstName": "tanvi dhanwani", "userRoleSlug": "loan-expert" }, { "userId": "652d41066d5c3f60c626a881", "email": "[email protected]", "mobileNumber": "7983822249", "userType": "student-advisor", "username": "Trisha_Gupta@ui9df", "firstName": "Trisha Gupta", "userRoleSlug": "student-advisor" }, { "userId": "60e51777068ebf64650745fe", "email": "[email protected]", "mobileNumber": "7778881111", "userType": "student-advisor", "username": "tushar_jain1111", "firstName": "Tushar Jain", "userRoleSlug": "business-head" }, { "userId": "64003ebfeba48b50a15f6e19", "email": "[email protected]", "mobileNumber": "8840813634", "userType": "student-advisor", "username": "uday_singh3634", "firstName": "Uday Singh", "userRoleSlug": "student-advisor" }, { "userId": "6418362ef9fb9a46f92f70a8", "email": "[email protected]", "mobileNumber": "9012718843", "userType": "student-advisor", "username": "unnati_maheshwari8843", "firstName": "Unnati Maheshwari", "userRoleSlug": "student-advisor" }, { "userId": "6131c0badcbc4f39121b5cd6", "email": "[email protected]", "mobileNumber": "8893847232", "userType": "student-advisor", "username": "vaubhav_shisodia7232", "firstName": "Vaibhav Shisodia", "userRoleSlug": "student-advisor" }, { "userId": "64003cabeba48b50a15f6caa", "email": "[email protected]", "mobileNumber": "9779202013", "userType": "student-advisor", "username": "vandna_rani2013", "firstName": "Vandna Rani", "userRoleSlug": "student-advisor" }, { "userId": "655b650d62468214ec3a3fec", "email": "[email protected]", "mobileNumber": "7701834384", "userType": "student-advisor", "username": "Varsha_Sharma@x2ryq", "firstName": "Varsha Sharma", "userRoleSlug": "student-advisor" }, { "userId": "6225bca08ae8e0059a775dcd", "email": "[email protected]", "mobileNumber": "8766258031", "userType": "student-advisor", "username": "varun_singh8031", "firstName": "Varun Singh", "userRoleSlug": "offline-partner-expert" }, { "userId": "655b57a662468214ec39e3e4", "email": "[email protected]", "mobileNumber": "7895755205", "userType": "student-advisor", "username": "Veronica_Kumar@aj3xi", "firstName": "Veronica Kumar", "userRoleSlug": "student-advisor" }, { "userId": "5c30910eeb6696426d59d020", "email": "[email protected]", "mobileNumber": "2121100476", "userType": "student-advisor", "username": "vijay6622", "firstName": "Vijay", "userRoleSlug": "cluster-head" }, { "userId": "655b440262468214ec39590e", "email": "[email protected]", "mobileNumber": "9546561787", "userType": "student-advisor", "username": "Vishal@22g7p", "firstName": "Vishal", "userRoleSlug": "student-advisor" }, { "userId": "5ff57ec9d1717f088fe7a6db", "email": "[email protected]", "mobileNumber": "989927378", "userType": "student-advisor", "username": "vishesh6143", "firstName": "Vishesh.C", "userRoleSlug": "admin" }, { "userId": "5bd41053fb6fc074abb0be06", "email": "[email protected]", "mobileNumber": "2121100636", "userType": "student-advisor", "username": "vishesh6100", "firstName": "Vishesh Taparia", "userRoleSlug": "cluster-head" }, { "userId": "6225c3e38ae8e0059a777539", "email": "[email protected]", "mobileNumber": "7302600727", "userType": "student-advisor", "username": "yash_chauhan0727", "firstName": "yash chauhan", "userRoleSlug": "student-advisor" }, { "userId": "64ec845d5747fa218cdcc8f3", "email": "[email protected]", "mobileNumber": "8810256053", "userType": "student-advisor", "username": "Yash_Rawat@rh7w2", "firstName": "Yash Rawat", "userRoleSlug": "offline-partner-expert" }, { "userId": "62c0386743c000325a47082f", "email": "[email protected]", "mobileNumber": "8375065813", "userType": "student-advisor", "username": "yash_verma5813", "firstName": "Yash Verma", "userRoleSlug": "offline-partner-expert" }, { "userId": "652d43e76d5c3f60c626b5ab", "email": "[email protected]", "mobileNumber": "9870148919", "userType": "student-advisor", "username": "Yashika_Goel@d1w0o", "firstName": "Yashika Goel", "userRoleSlug": "student-advisor" }]; const maps = expertData.reduce((acc, expert)=> { acc[expert.email] = expert; return acc; }, {}); console.log(JSON.stringify(maps, null, 2))
Write, Run & Share Javascript code online using OneCompiler's JS online compiler for free. It's one of the robust, feature-rich online compilers for Javascript language. Getting started with the OneCompiler's Javascript editor is easy and fast. The editor shows sample boilerplate code when you choose language as Javascript and start coding.
Javascript(JS) is a object-oriented programming language which adhere to ECMA Script Standards. Javascript is required to design the behaviour of the web pages.
var readline = require('readline');
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
terminal: false
});
rl.on('line', function(line){
console.log("Hello, " + line);
});
Keyword | Description | Scope |
---|---|---|
var | Var is used to declare variables(old way of declaring variables) | Function or global scope |
let | let is also used to declare variables(new way) | Global or block Scope |
const | const is used to declare const values. Once the value is assigned, it can not be modified | Global or block Scope |
let greetings = `Hello ${name}`
const msg = `
hello
world!
`
An array is a collection of items or values.
let arrayName = [value1, value2,..etc];
// or
let arrayName = new Array("value1","value2",..etc);
let mobiles = ["iPhone", "Samsung", "Pixel"];
// accessing an array
console.log(mobiles[0]);
// changing an array element
mobiles[3] = "Nokia";
Arrow Functions helps developers to write code in concise way, it’s introduced in ES6.
Arrow functions can be written in multiple ways. Below are couple of ways to use arrow function but it can be written in many other ways as well.
() => expression
const numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
const squaresOfEvenNumbers = numbers.filter(ele => ele % 2 == 0)
.map(ele => ele ** 2);
console.log(squaresOfEvenNumbers);
let [firstName, lastName] = ['Foo', 'Bar']
let {firstName, lastName} = {
firstName: 'Foo',
lastName: 'Bar'
}
const {
title,
firstName,
lastName,
...rest
} = record;
//Object spread
const post = {
...options,
type: "new"
}
//array spread
const users = [
...adminUsers,
...normalUsers
]
function greetings({ name = 'Foo' } = {}) { //Defaulting name to Foo
console.log(`Hello ${name}!`);
}
greet() // Hello Foo
greet({ name: 'Bar' }) // Hi Bar
IF is used to execute a block of code based on a condition.
if(condition){
// code
}
Else part is used to execute the block of code when the condition fails.
if(condition){
// code
} else {
// code
}
Switch is used to replace nested If-Else statements.
switch(condition){
case 'value1' :
//code
[break;]
case 'value2' :
//code
[break;]
.......
default :
//code
[break;]
}
For loop is used to iterate a set of statements based on a condition.
for(Initialization; Condition; Increment/decrement){
//code
}
While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.
while (condition) {
// code
}
Do-while is also used to iterate a set of statements based on a condition. It is mostly used when you need to execute the statements atleast once.
do {
// code
} while (condition);
ES6 introduced classes along with OOPS concepts in JS. Class is similar to a function which you can think like kind of template which will get called when ever you initialize class.
class className {
constructor() { ... } //Mandatory Class method
method1() { ... }
method2() { ... }
...
}
class Mobile {
constructor(model) {
this.name = model;
}
}
mbl = new Mobile("iPhone");