Transforming Agricultural Waste into Opportunities: Crop Residues for Sustainable Livestock Feeding and Productivity

Year : 2024 | Volume : | : | Page : –
By
vector

Md. Emran Hossain,

vector

Shilpi Islam,

  1. Professor, Department of Animal Science and Nutrition, Chattogram Veterinary and Animal Sciences University, Khulshi, Chattogram, , Bangladesh
  2. Professor, Department of Animal Science and Nutrition, Chattogram Veterinary and Animal Sciences University, Khulshi, Chattogram, , Bangladesh

Abstract document.addEventListener(‘DOMContentLoaded’,function(){frmFrontForm.scrollToID(‘frm_container_abs_111554’);});Edit Abstract & Keyword

As global agricultural systems strive to meet the growing demand for livestock products while minimizing environmental impact, the sustainable utilization of crop residues has emerged as a key strategy for improving feed resource availability. In Bangladesh and many other developing regions, vast quantities of crop residues are produced annually, yet their potential as a valuable feed resource remains underutilized. This review evaluates the role of crop residues in livestock feeding, focusing on their nutritional value, limitations, and strategies for enhancing their digestibility and utilization. Innovative processing techniques, such as biological, chemical, and mechanical treatments, are explored to convert low-nutrient agricultural waste into nutritionally viable feed. Additionally, it addresses the environmental and economic benefits of integrating crop residues into feeding systems, including reduced feed costs, lower reliance on conventional feed ingredients, and mitigation of waste-related environmental challenges. By transforming agricultural waste into a sustainable feed resource, this approach not only contributes to enhancing livestock productivity but also aligns with broader goals of sustainable agricultural development and circular economy principles. This paper provides a comprehensive analysis of opportunities, challenges, and future directions for optimizing use of crop residue in livestock feeding to achieve sustainable and resilient food production systems by using neglected crop residues.

Keywords: Crop residues, livestock feeding, nutritional value, sustainable agriculture, waste utilization

How to cite this article:
Md. Emran Hossain, Shilpi Islam. Transforming Agricultural Waste into Opportunities: Crop Residues for Sustainable Livestock Feeding and Productivity. Research & Reviews : Journal of Dairy Science & Technology. 2024; ():-.
How to cite this URL:
Md. Emran Hossain, Shilpi Islam. Transforming Agricultural Waste into Opportunities: Crop Residues for Sustainable Livestock Feeding and Productivity. Research & Reviews : Journal of Dairy Science & Technology. 2024; ():-. Available from: https://journals.stmjournals.com/rrjodst/article=2024/view=0

Full Text PDF

References
document.addEventListener(‘DOMContentLoaded’,function(){frmFrontForm.scrollToID(‘frm_container_ref_111554’);});Edit

  1. Divyabharathi R, Kalidasan B, Sakthi Suriya SSR, Chinnasamy S. Recent advances in sustainable agro residue utilisation, barriers and remediation for environmental management: Present insights and future challenges. Ind Crops Prod [Internet]. 2024;216. Available from: https://www.sciencedirect.com/science/article/pii/S0926669024007672
  2. Hoang TD, Van Anh N, Yusuf M, Ali S. A M, Subramanian Y, Hoang Nam N, et al. Valorization of Agriculture Residues into Value-Added Products: A Comprehensive Review of Recent Studies. Chem Rec [Internet]. 2024;24(8). Available from: https://onlinelibrary.wiley.com/doi/abs/10.1002/tcr.202300333
  3. Mnisi CM, Mlambo V, Mhlongo G, Marareni M. Exploiting Agro-Wastes for Sustainable Animal Production Systems and Food Security. Food Waste Valoris Food, Feed Fertil Fuel Value-Added Prod [Internet]. 2023;221–50. Available from: https://www.worldscientific.com/doi/abs/10.1142/9781800612891_0009
  4. Villas-Bôas SG, Esposito E, Mitchell DA. Microbial conversion of lignocellulosic residues for production of animal feeds. Anim Feed Sci Technol [Internet]. 2002;98(1–2):1–12. Available from: https://www.sciencedirect.com/science/article/pii/S0377840102000172
  5. Devi S, Gupta C, Jat SL, Parmar MS. Crop residue recycling for economic and environmental sustainability: The case of India. Open Agric [Internet]. 2017;2(1):486–94. Available from: https://www.degruyter.com/document/doi/10.1515/opag-2017-0053/html
  6. Jaya Arora • Abhishek Joshi • Ramesh C. Ray. Transforming Agriculture Residues for Sustainable Development (From Waste to Wealth). Springer [Internet]. 2024;425. Available from: https://link.springer.com/content/pdf/10.1007/978-3-031-61133-9.pdf
  7. Babu S, Singh Rathore S, Singh R, Kumar S, Singh VK, Yadav SK, et al. Exploring agricultural waste biomass for energy, food and feed production and pollution mitigation: A review. Bioresour Technol [Internet]. 2022;360. Available from: https://www.sciencedirect.com/science/article/pii/S0960852422008951
  8. Ma Y, Liu S, Cui L, Fei Q, Wang Q. Turning food waste to microbial lipid towards a superb economic and environmental sustainability: An innovative integrated biological route. Environ Res [Internet]. 2024;255. Available from: https://www.sciencedirect.com/science/article/pii/S0734975019301041
  9. Koul B, Yakoob M, Shah MP. Agricultural waste management strategies for environmental sustainability. Environ Res [Internet]. 2022;206. Available from: https://www.sciencedirect.com/science/article/pii/S0013935121015863
  10. Van Zanten HHE, Mollenhorst H, Oonincx DGAB, Bikker P, Meerburg BG, De Boer IJM. From environmental nuisance to environmental opportunity: Housefly larvae convert waste to livestock feed. J Clean Prod [Internet]. 2015;102:362–9. Available from: https://www.sciencedirect.com/science/article/pii/S0959652615004813
  11. Lal M, Pathak NN. Aquatic Weeds (Lemna and Hydrilla) As Livestock Feed. Anim Nutr [Internet]. 1988;5(4):329–32. Available from: https://www.indianjournals.com/ijor.aspx?target=ijor:ijan%5C&volume=5%5C&issue=4%5C&article=013
  12. Amata. the Use of Non-Conventional Feed Resources (Ncfr) for Livestock Feeding in the Tropics: a Review. J Glob Biosci [Internet]. 2014;3(2):604–13. Available from: http://mutagens.co.in
  13. Singh S. Non-conventional fodder resources for feeding livestock. Recent approaches Crop residue Manag value Addit Entrep Dev ICAR-Indian Grassl Fodd Res Institute, Jhansi, UP [Internet]. 2016;7–12. Available from: https://www.researchgate.net/profile/Aniruddha-Maity-2/publication/307606096_Recent_approaches_in_crop_residue_management_and_value_addition_for_entrepreneurship_development/links/57cd1cf808aedb6d6d9caabb/Recent-approaches-in-crop-residue-management-and-v
  14. ETSE WJ, ANNANG TY, AYIVOR JS. Nutritional composition of aquatic plants and their potential for use as animal feed: A case study of the Lower Volta Basin, Ghana. Biofarmasi J Nat Prod Biochem [Internet]. 2018;16(2):99–112. Available from: https://smujo.id/jnpb/article/view/3204
  15. Sońta M, Rekiel A, Batorska M. Use of Duckweed (Lemna L.) in Sustainable Livestock Production and Aquaculture – a Review. Ann Anim Sci [Internet]. 2019;19(2):257–71. Available from: https://sciendo.com/article/10.2478/aoas-2018-0048
  16. Khanal P. Use of land-based and aquatic alternative feed resources to establish a circular economy within livestock production. J Agric Food Res [Internet]. 2024;16. Available from: https://www.sciencedirect.com/science/article/pii/S2666154324001248
  17. Sindhu R, Gnansounou E, Binod P, Pandey A. Bioconversion of sugarcane crop residue for value added products – An overview. Renew Energy [Internet]. 2016;98:203–15. Available from: https://www.sciencedirect.com/science/article/pii/S0960148116301586
  18. Spiertz JHJ, Ewert F. Crop production and resource use to meet the growing demand for food, feed and fuel: Opportunities and constraints. NJAS – Wageningen J Life Sci [Internet]. 2009;56(4):281–300. Available from: https://www.tandfonline.com/doi/abs/10.1016/S1573-5214%2809%2980001-8
  19. Wadhwa M, Bakshi SPM. Utilization of fruit and vegetable wastes as livestock feed and as substrates for generation of other value-added products. RAP Publ 2013-04 [Internet]. 2013;67. Available from: http://www.fao.org.webtranslate-widget.systransoft.com/docrep/018/i3273e/i3273e.pdf
  20. Devendra C, Leng RA. Feed resources for animals in Asia: Issues, strategies for use, intensification and integration for increased productivity. Asian-Australasian J Anim Sci [Internet]. 2011;24(3):303–21. Available from: https://koreascience.kr/article/JAKO201118861578701.page
  21. Dou Z, Toth JD, Westendorf ML. Food waste for livestock feeding: Feasibility, safety, and sustainability implications. Glob Food Sec [Internet]. 2018;17:154–61. Available from: https://www.sciencedirect.com/science/article/pii/S2211912417301384
  22. Ajila CM, Brar SK, Verma M, Tyagi RD, Godbout S, Valéro JR. Bio-processing of agro-byproducts to animal feed. Crit Rev Biotechnol [Internet]. 2012;32(4):382–400. Available from: https://www.tandfonline.com/doi/abs/10.3109/07388551.2012.659172
  23. Bakshi MPS, Wadhwa M, Makkar HPS. Waste to worth: Vegetable wastes as animal feed. CAB Rev Perspect Agric Vet Sci Nutr Nat Resour [Internet]. 2016;11. Available from: https://www.cabidigitallibrary.org/doi/abs/10.1079/PAVSNNR201611012
  24. Dou Z, Toth JD, Pitta DW, Bender JS, Hennessy ML, Vecchiarelli B, et al. Proof of concept for developing novel feeds for cattle from wasted food and crop biomass to enhance agri-food system efficiency [Internet]. Vol. 12, Scientific Reports. researchsquare.com; 2022. Available from: https://doi.org/10.21203/rs.3.rs-1542984/v1
  25. Böttger C, Südekum KH. Review: protein value of distillers dried grains with solubles (DDGS) in animal nutrition as affected by the ethanol production process. Anim Feed Sci Technol [Internet]. 2018;244:11–7. Available from: https://www.sciencedirect.com/science/article/pii/S0377840118305765
  26. Fonseca NVB, Cardoso A da S, Hoffmann A, Leite RG, Ferrari AC, Fernandes MHM da R, et al. Characterization and effects of ddg on the intake and digestibility of finishing bulls in feedlots. Acta Sci – Anim Sci [Internet]. 2021;43(1):1–8. Available from: https://www.scielo.br/j/asas/a/wcgpnfKSGFJVMQppWt46gvK/?lang=en%5C&format=html
  27. Iram A, Cekmecelioglu D, Demirci A. Distillers’ dried grains with solubles (DDGS) and its potential as fermentation feedstock. Appl Microbiol Biotechnol [Internet]. 2020;104(14):6115–28. Available from: https://link.springer.com/article/10.1007/s00253-020-10682-0
  28. Sándor ZJ, Révész N, Varga D, Tóth F, Ardó L, Gyalog G. Nutritional and economic benefits of using DDGS (distiller’ dried grains soluble) as feed ingredient in common carp semi-intensive pond culture. Aquac Reports [Internet]. 2021;21. Available from: https://www.sciencedirect.com/science/article/pii/S2352513421002350
  29. Kong F, Abouel Azm FR, Wang X, Zhu Y, Yu H, Yao J, et al. Effects of replacement of dietary cottonseed meal by distiller’s dried grains with solubles on growth performance, muscle texture, health and expression of muscle-related genes in grass carp (Ctenopharyngodon idellus). Aquac Nutr [Internet]. 2021;27(4):1255–66. Available from: https://www.sciencedirect.com/science/article/pii/S0044848620338758
  30. C Devendra. Crop residues for feeding animals in Asia: technology development and adoption in crop/livestock systems. CABI in association with the International Crops Research Institute for the Semi-Arid Tropics and the International Livestock Research Institute. … Sustain Mix Crop Farming Syst (Ed … [Internet]. 1997;241–68. Available from: https://core.ac.uk/download/pdf/211009404.pdf#page=256
  31. Rathod P, … KV… of S of A, 2017 undefined. Utilization of crop residues for livestock feeding: A field experience. ResearchgateNet [Internet]. 2018; Available from: https://www.researchgate.net/profile/Prakashkumar-Rathod/publication/323218626_Utilization_of_Crop_Residues_for_Livestock_Feeding_A_Field_Experience/links/5a867635458515b8af8912bc/Utilization-of-Crop-Residues-for-Livestock-Feeding-A-Field-Experience.pdf
  32. Bhandari B, Bahadur B. CROP RESIDUE AS ANIMAL FEED Slurry management Vi[1] B. Bhandari and B. Bahadur, “CROP RESIDUE AS ANIMAL FEED Slurry management View project CROP RESIDUE AS ANIMAL FEED,” no. August, 2019, doi: 10.13140/RG.2.2.20372.04486.ew project CROP RESIDUE AS ANIMAL . Pap Rev [Internet]. 2019;(August). Available from: https://www.researchgate.net/publication/335490928
  33. Avadhanam, S., Polumat, A. and Ellamraju S. Usage of crop residue for making livestock feed. ILRI Proj Rep [Internet]. 2020;1–25. Available from: https://cgspace.cgiar.org/bitstream/handle/10568/111121/CropResidues_Projectreport.pdf
  34. Patil P V., Gendley MK, Patil MK, Prusty S, Ramteke RC. Crop Residue Based Complete Feed for Enhancing Livestock Performance- A Review. Asian J Agric Extension, Econ Sociol [Internet]. 2021;26–32. Available from: http://eprint.subtopublish.com/id/eprint/257/
  35. Siwal SS, Zhang Q, Devi N, Saini AK, Saini V, Pareek B, et al. Recovery processes of sustainable energy using different biomass and wastes. Renew Sustain Energy Rev [Internet]. 2021;150. Available from: https://www.sciencedirect.com/science/article/pii/S1364032121007644
  36. Ezejiofor T. Waste to Wealth- Value Recovery from Agro-food Processing Wastes Using Biotechnology: A Review. Br Biotechnol J [Internet]. 2014;4(4):418–81. Available from: http://library.eprintdigipress.com/id/eprint/1091/
  37. Thokchom R, Jarial S. Role of extension education in management of horticultural crop. Green Econ Sustain … [Internet]. 2020;(December 2018). Available from: https://www.researchgate.net/profile/Rocky-Thokchom-2/publication/342717394_ROLE_OF_EXTENSION_EDUCATION_IN_MANAGEMENT_OF_HORTICULTURAL_CROP_RESIDUES/links/5f035852a6fdcc4ca44ebc6f/ROLE-OF-EXTENSION-EDUCATION-IN-MANAGEMENT-OF-HORTICULTURAL-CROP-RESIDUES.pd
  38. Akinbamijo OO, Nouala S, Sanyang FB, Smith OB. Utilisation of horticultural residues by N’Dama cattle and their crosses in The Gambia. Livest Prod Sci [Internet]. 2003;80(3):221–8. Available from: https://www.sciencedirect.com/science/article/pii/S0301622602001756
  39. Datt C, Chhabra A, Singh NP, Bujarbaruah KM. Nutritional characteristics of horticultural crop residues as ruminant feeds. Indian J Anim Sci [Internet]. 2008;78(3):312–6. Available from: https://epubs.icar.org.in/index.php/IJAnS/article/download/4653/1886/9658
  40. Raj D, Senapati A. Waste Management in Horticulture Processing Industry. Commer Hortic [Internet]. 2016;(September):391–401. Available from: https://www.researchgate.net/publication/344348523
  41. Gowda NKS, Giridhar K, Anandan S. Alternate feed resources and technologies for their safe usage in livestock feeding. Livest Feed Feed Pract South Asia Eds Ashis Kumar Samanta, Shaikh Mohammad Bokhtiar, Mohammad Younus Ali, SAARC Agric Centre, BARC Complex, Dhaka Bangladesh [Internet]. 2019;207–23. Available from: https://www.researchgate.net/profile/Kuenga-Namgay/publication/340500166_Feeds_and_Feeding_Practices_in_Bhutan/links/5e8d408e299bf1307985dc33/Feeds-and-Feeding-Practices-in-Bhutan.pdf#page=216
  42. Lobo MG, Dorta E. Utilization and management of horticultural waste. Postharvest Technol Perish Hortic Commod [Internet]. 2019;639–66. Available from: https://www.sciencedirect.com/science/article/pii/B9780128132760000195
  43. Bhattacharjya S, Sahu A, Manna MC, Patra AK. Potential of surplus crop residues, horticultural waste and animal excreta as a nutrient source in the central and western regions of India. Curr Sci [Internet]. 2019;116(8):1314–23. Available from: https://www.jstor.org/stable/27138035
  44. Fernando LH, Tofinga MP. Production of cereal grains and pulses as components of livestock feed. [Internet]. cabidigitallibrary.org; 1986. Available from: https://www.cabidigitallibrary.org/doi/full/10.5555/19866761019
  45. Edwards AC. The use of pulses for feed in Australia. … Mark Oppor Pulses 21st … [Internet]. 2000;525–9. Available from: https://link.springer.com/chapter/10.1007/978-94-011-4385-1_49
  46. Roy F, Boye JI, Simpson BK. Bioactive proteins and peptides in pulse crops: Pea, chickpea and lentil. Food Res Int [Internet]. 2010;43(2):432–42. Available from: https://www.sciencedirect.com/science/article/pii/S0963996909002671
  47. Robinson GHJ, Balk J, Domoney C. Improving pulse crops as a source of protein, starch and micronutrients. Nutr Bull [Internet]. 2019;44(3):202–15. Available from: https://onlinelibrary.wiley.com/doi/abs/10.1111/nbu.12399
  48. Mirzaei-Aghsaghali A. Importance of medical herbs in animal feeding: A review. Ann Biol Res [Internet]. 2012; Available from: https://www.academia.edu/download/46493045/medicinnal_herbs.pdf
  49. Seifzadeh S, Aghjehgheshlagh FM, … The effects of a medical plant mix and probiotic on performance and health status of suckling Holstein calves. Ital J … [Internet]. 2017; Available from: https://www.tandfonline.com/doi/abs/10.1080/1828051X.2016.1249421
  50. Bagno OA, Prokhorov ON, Shevchenko SA, … Use of phytobioticts in farm animal feeding. Agric … [Internet]. 2018; Available from: http://www.agrobiology.ru/articles/4-2018bagno.pdf
  51. Kuralkar P, Kuralkar S V. Role of herbal products in animal production–An updated review. J Ethnopharmacol [Internet]. 2021; Available from: https://www.sciencedirect.com/science/article/pii/S0378874121004736
  52. Ivanova S, Sukhikh S, Popov A, Shishko O, … Medicinal plants: a source of phytobiotics for the feed additives. J Agric … [Internet]. 2024; Available from: https://www.sciencedirect.com/science/article/pii/S2666154324002096
  53. AHERNE FX, KENNELLY JJ. Oilseed Meals for Livestock Feeding. Recent Adv Anim Nutr [Internet]. 1982;39–89. Available from: https://books.google.com/books?hl=en%5C&lr=%5C&id=JAXLBAAAQBAJ%5C&oi=fnd%5C&pg=PA278%5C&dq=oil+seed+residue+as+livestock+feed%5C&ots=wBTwHQ7kBS%5C&sig=KLGWcackmuAWNmu2hJK7MfdX44I
  54. Rasool E, Khan MF, Nawaz M, Rafiq M. Utilization of Sunflower Crop Residues as Feed in Small Ruminants. Asian-Australasian J Anim Sci [Internet]. 1998;11(3):272–6. Available from: https://www.animbiosci.org/journal/view.php?doi=10.5713/ajas.1998.272
  55. Sarkar N, Chakraborty D, Dutta R, Agrahari P, Bharathi SD, Singh AA, et al. A comprehensive review on oilseed cakes and their potential as a feedstock for integrated biorefinery. J Adv Biotechnol Exp Ther [Internet]. 2021;4(3):376–87. Available from: https://www.academia.edu/download/93997923/178-1628068229.pdf
  56. Ahmed I, Riaz R, Sizmaz Ö. Sustainable Livestock Farming with Oil Seed Crops and Their By-Products. Ankara Univ Vet Fak Derg [Internet]. 2024;71(3):371–83. Available from: http://vetjournal.ankara.edu.tr/tr/pub/auvfd/issue/85941/1426643
  57. Marquardt RR, Bell JM. Future potential of pulses for use in animal feeds. World Crop Cool Seas food Legum A Glob … [Internet]. 1988;421–44. Available from: https://link.springer.com/chapter/10.1007/978-94-009-2764-3_37
  58. Mekasha Y, Tegegne A, Yami A, Umunna NN. Evaluation of non-conventional agro-industrial by-products as supplementary feeds for ruminants: In vitro and metabolism study with sheep. Small Rumin Res [Internet]. 2002;44(1):25–35. Available from: https://www.sciencedirect.com/science/article/pii/S0921448802000093
  59. Kumar N, Singh MK, Singh S. Residue management in pulse based cropping system under resource conservation technologies. … Technol Pulses [Internet]. 2014; Available from: https://books.google.com/books?hl=en%5C&lr=%5C&id=7QI5DwAAQBAJ%5C&oi=fnd%5C&pg=PA419%5C&dq=pulse+residue+as+livestock+feed%5C&ots=bdoPGAJoSa%5C&sig=1zEzwaH9DYb4mw33GMqWO3gCjpY
  60. Yeh TP, Bouwkamp JC. Roots and vines as animal feeds. Sweet Potato Prod A Nat Resour Trop [Internet]. 2018;235–54. Available from: https://www.taylorfrancis.com/chapters/edit/10.1201/9781351077033-15/roots-vines-animal-feeds-yeh-john-bouwkamp
  61. Babatunde B, Publishers| N. Nutritional evaluation of whole root and tuber crops as livestock feed. J Agric Sci Res. 2018;1(5):1–10.
  62. Cherdthong A, Khonkhaeng B, Seankamsorn A, Supapong C, Wanapat M, Gunun N, et al. Effects of feeding fresh cassava root with high-sulfur feed block on feed utilization, rumen fermentation, and blood metabolites in Thai native cattle. Trop Anim Health Prod [Internet]. 2018;50(6):1365–71. Available from: https://link.springer.com/article/10.1007/s11250-018-1569-8
  63. Olorunnisomo OA. Sweet potato as a ruminant feed: Performance of sheep fed mixtures of the forage and root. Niger J Anim Prod [Internet]. 2021;35(2):242–51. Available from: https://njap.org.ng/index.php/njap/article/view/2475
  64. Lekule FP, Sarwatt S. Processing and utilization of cassava livestock feed in Tanzania. Fao Corp Doc Repos [Internet]. 2006; Available from: http://www.fao.org/wairdocs/ilri/x5458e/x5458e0h.htm
  65. Iyayi EA, Tewe OO. Cassava Feeding in Small Holder Livestock Units. Acta Hortic [Internet]. 1994;(375):261–70. Available from: https://www.actahort.org/books/375/375_26.htm
  66. Tewe O, Egbunike G. Utilization of cassava in non-ruminant livestock feeds. Proc IITA/ILCA/University Ibadan Work potential Util cassava as Livest Feed Africa [Internet]. 1992;28–38. Available from: https://books.google.com/books?hl=en%5C&lr=%5C&id=S4MRm7Z-evEC%5C&oi=fnd%5C&pg=PA28%5C&dq=root+as+livestock+feed%5C&ots=Skp_pzehn0%5C&sig=VSmvuUdJbfC4ihd3nbaDd6xmuI8
  67. Dou Z, Toth JD, Pitta DW, Bender JS, Hennessy ML, Vecchiarelli B, et al. Proof of concept for developing novel feeds for cattle from wasted food and crop biomass to enhance agri-food system efficiency. Sci Rep [Internet]. 2022;12(1). Available from: https://www.nature.com/articles/s41598-022-17812-w
  68. Pandit S, Savla N, Sonawane JM, Sani AM, Gupta PK, Mathuriya AS, et al. Agricultural waste and wastewater as feedstock for bioelectricity generation using microbial fuel cells: Recent advances. Fermentation [Internet]. 2021;7(3). Available from: https://www.mdpi.com/2311-5637/7/3/169
  69. Bhatia RK, Ramadoss G, Jain AK, Dhiman RK, Bhatia SK, Bhatt AK. Conversion of Waste Biomass into Gaseous Fuel: Present Status and Challenges in India. Bioenergy Res [Internet]. 2020;13(4):1046–68. Available from: https://link.springer.com/article/10.1007/s12155-020-10137-4

Ahead of Print Subscription Review Article
Volume
Received 18/10/2024
Accepted 25/10/2024
Published 07/11/2024

function myFunction2() {
var x = document.getElementById(“browsefigure”);
if (x.style.display === “block”) {
x.style.display = “none”;
}
else { x.style.display = “Block”; }
}
document.querySelector(“.prevBtn”).addEventListener(“click”, () => {
changeSlides(-1);
});
document.querySelector(“.nextBtn”).addEventListener(“click”, () => {
changeSlides(1);
});
var slideIndex = 1;
showSlides(slideIndex);
function changeSlides(n) {
showSlides((slideIndex += n));
}
function currentSlide(n) {
showSlides((slideIndex = n));
}
function showSlides(n) {
var i;
var slides = document.getElementsByClassName(“Slide”);
var dots = document.getElementsByClassName(“Navdot”);
if (n > slides.length) { slideIndex = 1; }
if (n (item.style.display = “none”));
Array.from(dots).forEach(
item => (item.className = item.className.replace(” selected”, “”))
);
slides[slideIndex – 1].style.display = “block”;
dots[slideIndex – 1].className += ” selected”;
}