Message from JavaScript discussions

April 2019

— It helps you manage changes throughout your code, and let's you time-travel to different versions of your code

Message permanent page


Also helps people collaborate on code by providing ways to merge changes if two people edited the same file and upload their changes at the same time

— I'll look into that

— Is this function is enough for getting data from backend?

— Well, it seems to only log

— So it's useful if you want to console.log data from backend

— But not otherwise

— Can I take the json data with this?

— To print in the table of my html page

— function receive(method, url) {
return $.ajax({
type: method,
dataType: 'json'

— Then you do:

receive(method, url).then(function (data) {
// append to table

— Yes