Search the Blog

Sunday, August 4, 2019

JavaScript Console Logging Objects by programming logic and Code

Logging Objects is used for logging JSON responses from API Calls-


Console.log(
                      {   'Id':001,
                           'User Name':'Programming Logic and Code and                                  syntax',
                           'Email id':'dizsweb@gmail.com',
                           'Description':'Programming and Logic and Syntax                             of JAVA, JavaScript, MYSql,                                                             SQL Server, Servlet, JSON, REST, JDBC'
                       }
);




Console Log Place Holders-

Syntax
    var variable1="www.dizsweb.com";
    var variable2="Programming Logic And Code"

console.log("%s,%s", variable1,variable2);

Output- www.dizsweb.com, Programming Logic And Code
var varible1="JavaScipt Program Logic and Code by Dizsweb"; 
var variable2="All type Logic and Code"; 

console.log("%s,%s",varible1,variable2);



see- also- Servlet Code for request and responce



No comments:

Post a Comment

Translate