3 December 2021

Convert String to Number in react js

import React from 'react';

function ConvertStringToNumber(props) {
    const num="2000";
    return (
        <div>
            <div><h1>Convert String to Number</h1></div>
            {Number(num)}
        </div>
    );
}
export default ConvertStringToNumber;

Github link: https://github.com/adi501/react-js-example

No comments:

Post a Comment