Posts

JSON Define and Defination

Image
  What is JSON? JSON stands for JavaScript Object Notation is an open stand file format for sharing data. Web developers easily write and understand the JSON file data. It helps exchange data between the browser(client) and server, that time JSON data must be in text based on key-value pairs. It use the .json extension when it is standing alone. Why user JSON?  JSON using text format and its easy to understand,  it also sent to server and received from the server in readable format. Useful for any programming language like javascript, PHP, etc.  1. It’s Lightweight  2. Easy to write/ read 3. Language Independent  4. Integrated easily with most of the languages 5. Text based.  JSON Data Type  1. String : JSON String written in double qutoes.  2. Number : JSON Number be an integer and not written in double qutoes like string.  3. Object : JSON Object are written inside of curly ({ }) braces.  4. Array : JSON Array are written inside of square ([ ]) braces.  5. Boolean : Ture or False 6.

React Tutorial : Create Article DIV, Heading, Sub Heading & Paragraph

  <!doctype html> <html> <head> <title>Page Title</title> <meta charset=”UTF-8″> <meta name=”viewport” content=”initial-scale=1.0″> </head> <script crossorigin src=”https://unpkg.com/react@16/umd/react.development.js”></script> <script crossorigin src=”https://unpkg.com/react-dom@16/umd/react-dom.development.js”></script> <body> <div id=”root”></div> <script type=”text/javascript”> const articleHeading = React.createElement(‘h2’, null, ‘My First Blog Post’); const paragraph = React.createElement(‘p’, {className : ‘text’}, ‘This is Paragraph Text Contnet Here of MyFreeOnlineTools’); const article = React.createElement(‘article’, null, articleHeading, paragraph ); const mainHeading = React.createElement(‘h1’, null, ‘My Blog’); const main = React.createElement(‘main’, {id:’main’}, mainHeading, article); ReactDOM.render(main, document.getElementById(‘root’)); </script> </body> </h

Convert Date to String Format

 var getPostDate = '2020-07-15 12:58:56';         getPostDate = getPostDate.split(" ",1);            getPostDate = new Date(getPostDate).toDateString("yyyy-MM-dd"); console.log(getPostDate);