Javascript/fetchでjsonデータ取得

const DATA = './data.json';

async function getData() {
    const res = await fetch(DATA);
    const data = await res.json();
    console.log(data);
}
getData();

fetch(DATA)
 .then(function(response){
  return response.json();
 })
 .then(function(jsonData){
  console.log(jsonData);
 });

fetch(DATA)
 .then((response) => response.json())
 .then((jsonData) => {
    console.log(jsonData);
 });

const DATAS = [
 './data.json',
 './data2.json',
 './data3.json'
];
DATAS.forEach(function(dataUrl){
 fetch(dataUrl)
  .then(function(response){
   return response.json();
  })
  .then(function(jsonData){
   // JSONデータを扱った処理など
   console.log(jsonData);
  });
});