Javascript,Nodejs,MongodDB,WordPress,CSS,PHP

LightBlog

Saturday, November 6, 2021

JavaScript interview questions

1. capitalize string in javascript.
	
    	function captilize(str){
          const lower = str.toLowerCase();
          return str.charAt(0).toUpperCase() + lower.slice(1);
        }

captilize("abu")
    

No comments:

Post a Comment