#learnjquery
Explore tagged Tumblr posts
Text

At APTRON Solutions Noida, we understand the importance of hands-on experience in learning. That's why our JQuery Training in Noida is designed to be highly practical, providing you with ample opportunities to apply the concepts you learn in real-world scenarios. Our expert trainers guide you through the entire training, ensuring that you gain a solid understanding of jQuery and its applications. One of the key advantages of choosing APTRON Solutions Noida for jQuery training is our industry-aligned curriculum. We constantly update our course content to reflect the latest trends and developments in the field. This ensures that you receive training that is relevant and up-to-date, giving you a competitive edge in the job market.
#jQueryTraining#WebDevelopment#JavaScript#FrontEndDevelopment#APTRONSolutionsNoida#NoidaTraining#LearnjQuery#WebDesign#Coding#TechEducationn#ITTraining
0 notes
Text
Cave Man and `JSON.stringify`
The JSON.stringify() method converts a JavaScript value to a JSON string, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.1
Using javascript, I used to do cave-man debug using console.log(). In some cases, I console.log() to get the data returned from ajax call (using jQuery). E.g:
$.post('/my-url',my-post-data) .done(function(data){ console.log('done'); });
Above code is useful to indicate that our script is succesfully executing done callback. But I also want to log what's inside data. Unfortunately, if I concat data directly:
console.log('done'+data);
It will return: done[object Object] which is not what I want.
Well, that makes sense since the data is an object. So, here is where JSON.stringify() come to help. Just wrap the data:
console.log('done:'+JSON.stringify(data));
And it will return:
done:{"sample1":"sample-data-1","sample2":"sample-data2"}
That is one of my experience using JSON.stringify(). See you to the next post :D
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify ↩︎
0 notes