Skip to main content

Posts

Showing posts with the label Typescript

Coding Challenge React Programming : String Manipulation Coding Challenge - 1!

String Manipulation Coding challenges using React-Typescript Requirement: Given a string may contain spaces, convert them to All first character caps All Even numbers caps All Odd Numbers small Consider the strings are starting with 0 - Even number  Stack Blitz Console: import   React , {  Component  }  from   'react' ; import  {  render  }  from   'react-dom' ; import   Hello   from   './Hello' ; import   './style.css' ; interface   AppProps  {} interface   AppState  {    name :  string ;    input :  string ;    result :  string ; } class   App   extends   Component < AppProps ,  AppState > {    bResult :  any ;    constructor ( props ) {      super ( props );      this . state  = {        name:   'React Programming Coding Challenge: String Manipulation Coding Challenge - 1' ,        input:   '' ,        result:   'Result: No Result, input string to process'     };      this . handleChange  =  this . handleChange . bind ( t